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

Side by Side Diff: src/objects.cc

Issue 213213002: Fix LoadFieldByIndex to take mutable heap-numbers into account. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed nit 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/objects.h ('k') | src/runtime.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5622 matching lines...) Expand 10 before | Expand all | Expand 10 after
5633 } 5633 }
5634 5634
5635 5635
5636 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) { 5636 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) {
5637 Isolate* isolate = object->GetIsolate(); 5637 Isolate* isolate = object->GetIsolate();
5638 CALL_HEAP_FUNCTION(isolate, 5638 CALL_HEAP_FUNCTION(isolate,
5639 isolate->heap()->CopyJSObject(*object), JSObject); 5639 isolate->heap()->CopyJSObject(*object), JSObject);
5640 } 5640 }
5641 5641
5642 5642
5643 Handle<Object> JSObject::FastPropertyAt(Handle<JSObject> object,
5644 Representation representation,
5645 int index) {
5646 Isolate* isolate = object->GetIsolate();
5647 CALL_HEAP_FUNCTION(isolate,
5648 object->FastPropertyAt(representation, index), Object);
5649 }
5650
5651
5643 template<class ContextObject> 5652 template<class ContextObject>
5644 class JSObjectWalkVisitor { 5653 class JSObjectWalkVisitor {
5645 public: 5654 public:
5646 JSObjectWalkVisitor(ContextObject* site_context, bool copying, 5655 JSObjectWalkVisitor(ContextObject* site_context, bool copying,
5647 JSObject::DeepCopyHints hints) 5656 JSObject::DeepCopyHints hints)
5648 : site_context_(site_context), 5657 : site_context_(site_context),
5649 copying_(copying), 5658 copying_(copying),
5650 hints_(hints) {} 5659 hints_(hints) {}
5651 5660
5652 Handle<JSObject> StructureWalk(Handle<JSObject> object); 5661 Handle<JSObject> StructureWalk(Handle<JSObject> object);
(...skipping 10779 matching lines...) Expand 10 before | Expand all | Expand 10 after
16432 #define ERROR_MESSAGES_TEXTS(C, T) T, 16441 #define ERROR_MESSAGES_TEXTS(C, T) T,
16433 static const char* error_messages_[] = { 16442 static const char* error_messages_[] = {
16434 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16443 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16435 }; 16444 };
16436 #undef ERROR_MESSAGES_TEXTS 16445 #undef ERROR_MESSAGES_TEXTS
16437 return error_messages_[reason]; 16446 return error_messages_[reason];
16438 } 16447 }
16439 16448
16440 16449
16441 } } // namespace v8::internal 16450 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698