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

Side by Side Diff: src/ic.cc

Issue 329253003: Revert 21774: "Generate KeyedLoadGeneric with Hydrogen" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/ic.h ('k') | src/isolate.cc » ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 Token::Value op; 547 Token::Value op;
548 ICCompareStub::DecodeMinorKey(target->stub_info(), NULL, NULL, 548 ICCompareStub::DecodeMinorKey(target->stub_info(), NULL, NULL,
549 &handler_state, &op); 549 &handler_state, &op);
550 // Only clear CompareICs that can retain objects. 550 // Only clear CompareICs that can retain objects.
551 if (handler_state != KNOWN_OBJECT) return; 551 if (handler_state != KNOWN_OBJECT) return;
552 SetTargetAtAddress(address, GetRawUninitialized(isolate, op), constant_pool); 552 SetTargetAtAddress(address, GetRawUninitialized(isolate, op), constant_pool);
553 PatchInlinedSmiCode(address, DISABLE_INLINED_SMI_CHECK); 553 PatchInlinedSmiCode(address, DISABLE_INLINED_SMI_CHECK);
554 } 554 }
555 555
556 556
557 Handle<Code> KeyedLoadIC::megamorphic_stub() {
558 if (FLAG_compiled_keyed_generic_loads) {
559 return KeyedLoadGenericElementStub(isolate()).GetCode();
560 } else {
561 return isolate()->builtins()->KeyedLoadIC_Generic();
562 }
563 }
564
565 Handle<Code> KeyedLoadIC::generic_stub() const {
566 if (FLAG_compiled_keyed_generic_loads) {
567 return KeyedLoadGenericElementStub(isolate()).GetCode();
568 } else {
569 return isolate()->builtins()->KeyedLoadIC_Generic();
570 }
571 }
572
573
574 static bool MigrateDeprecated(Handle<Object> object) { 557 static bool MigrateDeprecated(Handle<Object> object) {
575 if (!object->IsJSObject()) return false; 558 if (!object->IsJSObject()) return false;
576 Handle<JSObject> receiver = Handle<JSObject>::cast(object); 559 Handle<JSObject> receiver = Handle<JSObject>::cast(object);
577 if (!receiver->map()->is_deprecated()) return false; 560 if (!receiver->map()->is_deprecated()) return false;
578 JSObject::MigrateInstance(Handle<JSObject>::cast(object)); 561 JSObject::MigrateInstance(Handle<JSObject>::cast(object));
579 return true; 562 return true;
580 } 563 }
581 564
582 565
583 MaybeHandle<Object> LoadIC::Load(Handle<Object> object, Handle<String> name) { 566 MaybeHandle<Object> LoadIC::Load(Handle<Object> object, Handle<String> name) {
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 #undef ADDR 3080 #undef ADDR
3098 }; 3081 };
3099 3082
3100 3083
3101 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3084 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3102 return IC_utilities[id]; 3085 return IC_utilities[id];
3103 } 3086 }
3104 3087
3105 3088
3106 } } // namespace v8::internal 3089 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698