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
5
#include "
src/execution/arguments.h
"
6
#include "
src/execution/isolate-inl.h
"
7
#include "
src/heap/factory.h
"
8
9
namespace
v8
{
10
namespace
internal
{
11
12
RUNTIME_FUNCTION
(Runtime_DateCurrentTime) {
13
HandleScope
scope(isolate);
14
DCHECK_EQ
(0,
args
.length());
15
return
*isolate->factory()->NewNumberFromInt64(
16
JSDate::CurrentTimeValue
(isolate));
17
}
18
19
}
// namespace internal
20
}
// namespace v8
v8::internal::HandleScope
Definition
handles.h:262
v8::internal::JSDate::CurrentTimeValue
static int64_t CurrentTimeValue(Isolate *isolate)
Definition
js-objects.cc:5693
arguments.h
RUNTIME_FUNCTION
#define RUNTIME_FUNCTION(Name)
Definition
arguments.h:162
isolate-inl.h
args
base::Vector< const DirectHandle< Object > > args
Definition
execution.cc:74
factory.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
DCHECK_EQ
#define DCHECK_EQ(v1, v2)
Definition
logging.h:485
src
runtime
runtime-date.cc
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0