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

Side by Side Diff: src/runtime.cc

Issue 219393002: Revert 20348 - "Fix LoadFieldByIndex to take mutable heap-numbers into account." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/runtime.h ('k') | src/x64/lithium-codegen-x64.h » ('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 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
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
14524 RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { 14511 RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) {
14525 HandleScope scope(isolate); 14512 HandleScope scope(isolate);
14526 ASSERT(args.length() == 1); 14513 ASSERT(args.length() == 1);
14527 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 14514 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
14528 if (!object->IsJSObject()) return Smi::FromInt(0); 14515 if (!object->IsJSObject()) return Smi::FromInt(0);
14529 Handle<JSObject> js_object = Handle<JSObject>::cast(object); 14516 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
14530 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0); 14517 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0);
14531 // This call must not cause lazy deopts, because it's called from deferred 14518 // This call must not cause lazy deopts, because it's called from deferred
14532 // code where we can't handle lazy deopts for lack of a suitable bailout 14519 // code where we can't handle lazy deopts for lack of a suitable bailout
14533 // ID. So we just try migration and signal failure if necessary, 14520 // ID. So we just try migration and signal failure if necessary,
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
15148 } 15135 }
15149 } 15136 }
15150 15137
15151 15138
15152 void Runtime::OutOfMemory() { 15139 void Runtime::OutOfMemory() {
15153 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); 15140 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true);
15154 UNREACHABLE(); 15141 UNREACHABLE();
15155 } 15142 }
15156 15143
15157 } } // namespace v8::internal 15144 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698