OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 #include "accessors.h" | 10 #include "accessors.h" |
(...skipping 9469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9480 | 9480 |
9481 | 9481 |
9482 RUNTIME_FUNCTION(RuntimeHidden_ThrowNotDateError) { | 9482 RUNTIME_FUNCTION(RuntimeHidden_ThrowNotDateError) { |
9483 HandleScope scope(isolate); | 9483 HandleScope scope(isolate); |
9484 ASSERT(args.length() == 0); | 9484 ASSERT(args.length() == 0); |
9485 return isolate->Throw(*isolate->factory()->NewTypeError( | 9485 return isolate->Throw(*isolate->factory()->NewTypeError( |
9486 "not_date_object", HandleVector<Object>(NULL, 0))); | 9486 "not_date_object", HandleVector<Object>(NULL, 0))); |
9487 } | 9487 } |
9488 | 9488 |
9489 | 9489 |
9490 RUNTIME_FUNCTION(RuntimeHidden_ThrowMessage) { | |
9491 HandleScope scope(isolate); | |
9492 ASSERT(args.length() == 1); | |
9493 CONVERT_SMI_ARG_CHECKED(message_id, 0); | |
9494 const char* message = GetBailoutReason( | |
9495 static_cast<BailoutReason>(message_id)); | |
9496 Handle<String> message_handle = | |
9497 isolate->factory()->NewStringFromAsciiChecked(message); | |
9498 return isolate->Throw(*message_handle); | |
9499 } | |
9500 | |
9501 | |
9502 RUNTIME_FUNCTION(RuntimeHidden_StackGuard) { | 9490 RUNTIME_FUNCTION(RuntimeHidden_StackGuard) { |
9503 SealHandleScope shs(isolate); | 9491 SealHandleScope shs(isolate); |
9504 ASSERT(args.length() == 0); | 9492 ASSERT(args.length() == 0); |
9505 | 9493 |
9506 // First check if this is a real stack overflow. | 9494 // First check if this is a real stack overflow. |
9507 if (isolate->stack_guard()->IsStackOverflow()) { | 9495 if (isolate->stack_guard()->IsStackOverflow()) { |
9508 return isolate->StackOverflow(); | 9496 return isolate->StackOverflow(); |
9509 } | 9497 } |
9510 | 9498 |
9511 return isolate->stack_guard()->HandleInterrupts(); | 9499 return isolate->stack_guard()->HandleInterrupts(); |
(...skipping 5615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15127 } | 15115 } |
15128 return NULL; | 15116 return NULL; |
15129 } | 15117 } |
15130 | 15118 |
15131 | 15119 |
15132 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15120 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15133 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15121 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15134 } | 15122 } |
15135 | 15123 |
15136 } } // namespace v8::internal | 15124 } } // namespace v8::internal |
OLD | NEW |