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

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

Issue 961003002: Invalidate the global property cell when converting from data to accessor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/objects.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // code for security check in case of global object holders. Helps to make 88 // code for security check in case of global object holders. Helps to make
89 // sure that the current IC is still valid. 89 // sure that the current IC is still valid.
90 // 90 //
91 // The scratch and holder registers are always clobbered, but the object 91 // The scratch and holder registers are always clobbered, but the object
92 // register is only clobbered if it the same as the holder register. The 92 // register is only clobbered if it the same as the holder register. The
93 // function returns a register containing the holder - either object_reg or 93 // function returns a register containing the holder - either object_reg or
94 // holder_reg. 94 // holder_reg.
95 Register CheckPrototypes(Register object_reg, Register holder_reg, 95 Register CheckPrototypes(Register object_reg, Register holder_reg,
96 Register scratch1, Register scratch2, 96 Register scratch1, Register scratch2,
97 Handle<Name> name, Label* miss, 97 Handle<Name> name, Label* miss,
98 PrototypeCheckType check = CHECK_ALL_MAPS); 98 PrototypeCheckType check);
99 99
100 Handle<Code> GetCode(Code::Kind kind, Code::StubType type, Handle<Name> name); 100 Handle<Code> GetCode(Code::Kind kind, Code::StubType type, Handle<Name> name);
101 void set_holder(Handle<JSObject> holder) { holder_ = holder; } 101 void set_holder(Handle<JSObject> holder) { holder_ = holder; }
102 Handle<Map> map() const { return map_; } 102 Handle<Map> map() const { return map_; }
103 void set_map(Handle<Map> map) { map_ = map; } 103 void set_map(Handle<Map> map) { map_ = map; }
104 Handle<JSObject> holder() const { return holder_; } 104 Handle<JSObject> holder() const { return holder_; }
105 105
106 private: 106 private:
107 Handle<Map> map_; 107 Handle<Map> map_;
108 Handle<JSObject> holder_; 108 Handle<JSObject> holder_;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 void CompileElementHandlers(MapHandleList* receiver_maps, 291 void CompileElementHandlers(MapHandleList* receiver_maps,
292 CodeHandleList* handlers); 292 CodeHandleList* handlers);
293 293
294 static void GenerateStoreSlow(MacroAssembler* masm); 294 static void GenerateStoreSlow(MacroAssembler* masm);
295 }; 295 };
296 } 296 }
297 } // namespace v8::internal 297 } // namespace v8::internal
298 298
299 #endif // V8_IC_HANDLER_COMPILER_H_ 299 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698