OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 14490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14501 | 14501 |
14502 | 14502 |
14503 RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyContextDisposed) { | 14503 RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyContextDisposed) { |
14504 HandleScope scope(isolate); | 14504 HandleScope scope(isolate); |
14505 ASSERT(args.length() == 0); | 14505 ASSERT(args.length() == 0); |
14506 isolate->heap()->NotifyContextDisposed(); | 14506 isolate->heap()->NotifyContextDisposed(); |
14507 return isolate->heap()->undefined_value(); | 14507 return isolate->heap()->undefined_value(); |
14508 } | 14508 } |
14509 | 14509 |
14510 | 14510 |
| 14511 RUNTIME_FUNCTION(MaybeObject*, Runtime_LoadMutableDouble) { |
| 14512 HandleScope scope(isolate); |
| 14513 ASSERT(args.length() == 2); |
| 14514 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| 14515 CONVERT_ARG_HANDLE_CHECKED(Smi, index, 1); |
| 14516 int idx = index->value() >> 1; |
| 14517 if (idx < 0) { |
| 14518 idx = -idx + object->map()->inobject_properties() - 1; |
| 14519 } |
| 14520 return *JSObject::FastPropertyAt(object, Representation::Double(), idx); |
| 14521 } |
| 14522 |
| 14523 |
14511 RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { | 14524 RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { |
14512 HandleScope scope(isolate); | 14525 HandleScope scope(isolate); |
14513 ASSERT(args.length() == 1); | 14526 ASSERT(args.length() == 1); |
14514 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 14527 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
14515 if (!object->IsJSObject()) return Smi::FromInt(0); | 14528 if (!object->IsJSObject()) return Smi::FromInt(0); |
14516 Handle<JSObject> js_object = Handle<JSObject>::cast(object); | 14529 Handle<JSObject> js_object = Handle<JSObject>::cast(object); |
14517 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0); | 14530 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0); |
14518 // This call must not cause lazy deopts, because it's called from deferred | 14531 // This call must not cause lazy deopts, because it's called from deferred |
14519 // code where we can't handle lazy deopts for lack of a suitable bailout | 14532 // code where we can't handle lazy deopts for lack of a suitable bailout |
14520 // ID. So we just try migration and signal failure if necessary, | 14533 // ID. So we just try migration and signal failure if necessary, |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15135 } | 15148 } |
15136 } | 15149 } |
15137 | 15150 |
15138 | 15151 |
15139 void Runtime::OutOfMemory() { | 15152 void Runtime::OutOfMemory() { |
15140 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); | 15153 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); |
15141 UNREACHABLE(); | 15154 UNREACHABLE(); |
15142 } | 15155 } |
15143 | 15156 |
15144 } } // namespace v8::internal | 15157 } } // namespace v8::internal |
OLD | NEW |