Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/runtime/runtime-test.cc

Issue 1140333003: Introduce extras export object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/contexts.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 base::OS::PrintError("abort: %s\n", message->ToCString().get()); 365 base::OS::PrintError("abort: %s\n", message->ToCString().get());
366 isolate->PrintStack(stderr); 366 isolate->PrintStack(stderr);
367 base::OS::Abort(); 367 base::OS::Abort();
368 UNREACHABLE(); 368 UNREACHABLE();
369 return NULL; 369 return NULL;
370 } 370 }
371 371
372 372
373 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { 373 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) {
374 DCHECK(args.length() == 0); 374 DCHECK(args.length() == 0);
375 return Smi::FromInt(Natives::GetBuiltinsCount()); 375 return Smi::FromInt(Natives::GetBuiltinsCount() +
376 ExtraNatives::GetBuiltinsCount());
376 } 377 }
377 378
378 379
379 // Returns V8 version as a string. 380 // Returns V8 version as a string.
380 RUNTIME_FUNCTION(Runtime_GetV8Version) { 381 RUNTIME_FUNCTION(Runtime_GetV8Version) {
381 HandleScope scope(isolate); 382 HandleScope scope(isolate);
382 DCHECK(args.length() == 0); 383 DCHECK(args.length() == 0);
383 384
384 const char* version_string = v8::V8::GetVersion(); 385 const char* version_string = v8::V8::GetVersion();
385 386
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 496 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
496 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 497 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
497 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 498 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
498 } 499 }
499 500
500 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 501 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
501 502
502 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 503 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
503 } 504 }
504 } // namespace v8::internal 505 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698