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

Side by Side Diff: src/ic/ia32/ic-compiler-ia32.cc

Issue 893073006: Add map-based read barrier to WeakCell Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge Created 5 years, 10 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
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 __ mov(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset)); 108 __ mov(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset));
109 for (int i = 0; i < receiver_maps->length(); ++i) { 109 for (int i = 0; i < receiver_maps->length(); ++i) {
110 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); 110 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i));
111 __ CmpWeakValue(map_reg, cell, scratch2()); 111 __ CmpWeakValue(map_reg, cell, scratch2());
112 if (transitioned_maps->at(i).is_null()) { 112 if (transitioned_maps->at(i).is_null()) {
113 __ j(equal, handler_stubs->at(i)); 113 __ j(equal, handler_stubs->at(i));
114 } else { 114 } else {
115 Label next_map; 115 Label next_map;
116 __ j(not_equal, &next_map, Label::kNear); 116 __ j(not_equal, &next_map, Label::kNear);
117 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); 117 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i));
118 __ LoadWeakValue(transition_map(), cell, &miss); 118 __ LoadWeakValue(transition_map(), cell, scratch2(), &miss);
119 __ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET); 119 __ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET);
120 __ bind(&next_map); 120 __ bind(&next_map);
121 } 121 }
122 } 122 }
123 __ bind(&miss); 123 __ bind(&miss);
124 TailCallBuiltin(masm(), MissBuiltin(kind())); 124 TailCallBuiltin(masm(), MissBuiltin(kind()));
125 125
126 // Return the generated code. 126 // Return the generated code.
127 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 127 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
128 } 128 }
129 129
130 130
131 #undef __ 131 #undef __
132 } 132 }
133 } // namespace v8::internal 133 } // namespace v8::internal
134 134
135 #endif // V8_TARGET_ARCH_IA32 135 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698