v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
runtime-date.cc
Go to the documentation of this file.
1// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
7#include "src/heap/factory.h"
8
9namespace v8 {
10namespace internal {
11
12RUNTIME_FUNCTION(Runtime_DateCurrentTime) {
13 HandleScope scope(isolate);
14 DCHECK_EQ(0, args.length());
15 return *isolate->factory()->NewNumberFromInt64(
17}
18
19} // namespace internal
20} // namespace v8
static int64_t CurrentTimeValue(Isolate *isolate)
#define RUNTIME_FUNCTION(Name)
Definition arguments.h:162
base::Vector< const DirectHandle< Object > > args
Definition execution.cc:74
#define DCHECK_EQ(v1, v2)
Definition logging.h:485