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

Side by Side Diff: src/runtime.cc

Issue 391693002: In-object double fields unboxing (for 64-bit only). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 14524 matching lines...) Expand 10 before | Expand all | Expand 10 after
14535 RUNTIME_ASSERT((index->value() & 1) == 1); 14535 RUNTIME_ASSERT((index->value() & 1) == 1);
14536 FieldIndex field_index = 14536 FieldIndex field_index =
14537 FieldIndex::ForLoadByFieldIndex(object->map(), index->value()); 14537 FieldIndex::ForLoadByFieldIndex(object->map(), index->value());
14538 if (field_index.is_inobject()) { 14538 if (field_index.is_inobject()) {
14539 RUNTIME_ASSERT(field_index.property_index() < 14539 RUNTIME_ASSERT(field_index.property_index() <
14540 object->map()->inobject_properties()); 14540 object->map()->inobject_properties());
14541 } else { 14541 } else {
14542 RUNTIME_ASSERT(field_index.outobject_array_index() < 14542 RUNTIME_ASSERT(field_index.outobject_array_index() <
14543 object->properties()->length()); 14543 object->properties()->length());
14544 } 14544 }
14545 Handle<Object> raw_value(object->RawFastPropertyAt(field_index), isolate); 14545 Handle<Object> raw_value(
14546 JSObject::RawFastBoxedPropertyAt(object, field_index));
14546 RUNTIME_ASSERT(raw_value->IsMutableHeapNumber()); 14547 RUNTIME_ASSERT(raw_value->IsMutableHeapNumber());
14547 return *Object::WrapForRead(isolate, raw_value, Representation::Double()); 14548 return *Object::WrapForRead(isolate, raw_value, Representation::Double());
14548 } 14549 }
14549 14550
14550 14551
14551 RUNTIME_FUNCTION(Runtime_TryMigrateInstance) { 14552 RUNTIME_FUNCTION(Runtime_TryMigrateInstance) {
14552 HandleScope scope(isolate); 14553 HandleScope scope(isolate);
14553 ASSERT(args.length() == 1); 14554 ASSERT(args.length() == 1);
14554 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 14555 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
14555 if (!object->IsJSObject()) return Smi::FromInt(0); 14556 if (!object->IsJSObject()) return Smi::FromInt(0);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
15116 } 15117 }
15117 return NULL; 15118 return NULL;
15118 } 15119 }
15119 15120
15120 15121
15121 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15122 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15122 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15123 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15123 } 15124 }
15124 15125
15125 } } // namespace v8::internal 15126 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698