OLD | NEW |
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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.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/frames-inl.h" | 9 #include "src/frames-inl.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 base::OS::PrintError("abort: %s\n", message->ToCString().get()); | 370 base::OS::PrintError("abort: %s\n", message->ToCString().get()); |
371 isolate->PrintStack(stderr); | 371 isolate->PrintStack(stderr); |
372 base::OS::Abort(); | 372 base::OS::Abort(); |
373 UNREACHABLE(); | 373 UNREACHABLE(); |
374 return NULL; | 374 return NULL; |
375 } | 375 } |
376 | 376 |
377 | 377 |
378 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { | 378 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { |
379 DCHECK(args.length() == 0); | 379 DCHECK(args.length() == 0); |
380 return Smi::FromInt(Natives::GetBuiltinsCount() + | 380 return Smi::FromInt(Natives::GetBuiltinsCount()); |
381 ExtraNatives::GetBuiltinsCount()); | |
382 } | 381 } |
383 | 382 |
384 | 383 |
385 // Returns V8 version as a string. | 384 // Returns V8 version as a string. |
386 RUNTIME_FUNCTION(Runtime_GetV8Version) { | 385 RUNTIME_FUNCTION(Runtime_GetV8Version) { |
387 HandleScope scope(isolate); | 386 HandleScope scope(isolate); |
388 DCHECK(args.length() == 0); | 387 DCHECK(args.length() == 0); |
389 | 388 |
390 const char* version_string = v8::V8::GetVersion(); | 389 const char* version_string = v8::V8::GetVersion(); |
391 | 390 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ | 497 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ |
499 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ | 498 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
500 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ | 499 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ |
501 } | 500 } |
502 | 501 |
503 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) | 502 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
504 | 503 |
505 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION | 504 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
506 } // namespace internal | 505 } // namespace internal |
507 } // namespace v8 | 506 } // namespace v8 |
OLD | NEW |