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

Side by Side Diff: src/runtime.cc

Issue 334323003: Reland r22082 "Replace HeapNumber as doublebox with an explicit MutableHeapNumber." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Migrations test fixed Created 6 years, 5 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/objects-visiting.cc ('k') | src/x64/macro-assembler-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 // 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 "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 14506 matching lines...) Expand 10 before | Expand all | Expand 10 after
14517 FieldIndex field_index = 14517 FieldIndex field_index =
14518 FieldIndex::ForLoadByFieldIndex(object->map(), index->value()); 14518 FieldIndex::ForLoadByFieldIndex(object->map(), index->value());
14519 if (field_index.is_inobject()) { 14519 if (field_index.is_inobject()) {
14520 RUNTIME_ASSERT(field_index.property_index() < 14520 RUNTIME_ASSERT(field_index.property_index() <
14521 object->map()->inobject_properties()); 14521 object->map()->inobject_properties());
14522 } else { 14522 } else {
14523 RUNTIME_ASSERT(field_index.outobject_array_index() < 14523 RUNTIME_ASSERT(field_index.outobject_array_index() <
14524 object->properties()->length()); 14524 object->properties()->length());
14525 } 14525 }
14526 Handle<Object> raw_value(object->RawFastPropertyAt(field_index), isolate); 14526 Handle<Object> raw_value(object->RawFastPropertyAt(field_index), isolate);
14527 RUNTIME_ASSERT(raw_value->IsNumber() || raw_value->IsUninitialized()); 14527 RUNTIME_ASSERT(raw_value->IsMutableHeapNumber());
14528 return *Object::NewStorageFor(isolate, raw_value, Representation::Double()); 14528 return *Object::WrapForRead(isolate, raw_value, Representation::Double());
14529 } 14529 }
14530 14530
14531 14531
14532 RUNTIME_FUNCTION(Runtime_TryMigrateInstance) { 14532 RUNTIME_FUNCTION(Runtime_TryMigrateInstance) {
14533 HandleScope scope(isolate); 14533 HandleScope scope(isolate);
14534 ASSERT(args.length() == 1); 14534 ASSERT(args.length() == 1);
14535 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 14535 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
14536 if (!object->IsJSObject()) return Smi::FromInt(0); 14536 if (!object->IsJSObject()) return Smi::FromInt(0);
14537 Handle<JSObject> js_object = Handle<JSObject>::cast(object); 14537 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
14538 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0); 14538 if (!js_object->map()->is_deprecated()) return Smi::FromInt(0);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
15099 } 15099 }
15100 return NULL; 15100 return NULL;
15101 } 15101 }
15102 15102
15103 15103
15104 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15104 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15105 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15105 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15106 } 15106 }
15107 15107
15108 } } // namespace v8::internal 15108 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698