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

Side by Side Diff: src/ic/handler-compiler.h

Issue 1189153002: Revert of [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/ic/arm64/ic-arm64.cc ('k') | src/ic/handler-compiler.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 #ifndef V8_IC_HANDLER_COMPILER_H_ 5 #ifndef V8_IC_HANDLER_COMPILER_H_
6 #define V8_IC_HANDLER_COMPILER_H_ 6 #define V8_IC_HANDLER_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 #include "src/ic/ic-state.h" 9 #include "src/ic/ic-state.h"
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Handle<Code> CompileLoadViaGetter(Handle<Name> name, int accessor_index, 139 Handle<Code> CompileLoadViaGetter(Handle<Name> name, int accessor_index,
140 int expected_arguments); 140 int expected_arguments);
141 141
142 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, 142 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name,
143 bool is_configurable); 143 bool is_configurable);
144 144
145 // Static interface 145 // Static interface
146 static Handle<Code> ComputeLoadNonexistent(Handle<Name> name, 146 static Handle<Code> ComputeLoadNonexistent(Handle<Name> name,
147 Handle<Map> map); 147 Handle<Map> map);
148 148
149 static void GenerateSlow(MacroAssembler* masm);
150
151 static void GenerateLoadViaGetter(MacroAssembler* masm, Handle<Map> map, 149 static void GenerateLoadViaGetter(MacroAssembler* masm, Handle<Map> map,
152 Register receiver, Register holder, 150 Register receiver, Register holder,
153 int accessor_index, int expected_arguments, 151 int accessor_index, int expected_arguments,
154 Register scratch); 152 Register scratch);
155 153
156 static void GenerateLoadViaGetterForDeopt(MacroAssembler* masm) { 154 static void GenerateLoadViaGetterForDeopt(MacroAssembler* masm) {
157 GenerateLoadViaGetter(masm, Handle<Map>::null(), no_reg, no_reg, -1, -1, 155 GenerateLoadViaGetter(masm, Handle<Map>::null(), no_reg, no_reg, -1, -1,
158 no_reg); 156 no_reg);
159 } 157 }
160 158
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 class ElementHandlerCompiler : public PropertyHandlerCompiler { 283 class ElementHandlerCompiler : public PropertyHandlerCompiler {
286 public: 284 public:
287 explicit ElementHandlerCompiler(Isolate* isolate) 285 explicit ElementHandlerCompiler(Isolate* isolate)
288 : PropertyHandlerCompiler(isolate, Code::KEYED_LOAD_IC, 286 : PropertyHandlerCompiler(isolate, Code::KEYED_LOAD_IC,
289 Handle<Map>::null(), Handle<JSObject>::null(), 287 Handle<Map>::null(), Handle<JSObject>::null(),
290 kCacheOnReceiver) {} 288 kCacheOnReceiver) {}
291 289
292 virtual ~ElementHandlerCompiler() {} 290 virtual ~ElementHandlerCompiler() {}
293 291
294 void CompileElementHandlers(MapHandleList* receiver_maps, 292 void CompileElementHandlers(MapHandleList* receiver_maps,
295 CodeHandleList* handlers, 293 CodeHandleList* handlers);
296 LanguageMode language_mode);
297 294
298 static void GenerateLoadSlow(MacroAssembler* masm);
299 static void GenerateStoreSlow(MacroAssembler* masm); 295 static void GenerateStoreSlow(MacroAssembler* masm);
300 }; 296 };
301 } 297 }
302 } // namespace v8::internal 298 } // namespace v8::internal
303 299
304 #endif // V8_IC_HANDLER_COMPILER_H_ 300 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/arm64/ic-arm64.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698