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

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

Issue 609463003: Hydrogenize (and share) part of StoreTransition handler as a StoreTransitionStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebasing Created 6 years, 2 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/arm64/handler-compiler-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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 static void GenerateSlow(MacroAssembler* masm); 223 static void GenerateSlow(MacroAssembler* masm);
224 224
225 protected: 225 protected:
226 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, 226 virtual Register FrontendHeader(Register object_reg, Handle<Name> name,
227 Label* miss); 227 Label* miss);
228 228
229 virtual void FrontendFooter(Handle<Name> name, Label* miss); 229 virtual void FrontendFooter(Handle<Name> name, Label* miss);
230 void GenerateRestoreName(Label* label, Handle<Name> name); 230 void GenerateRestoreName(Label* label, Handle<Name> name);
231 231
232 private: 232 private:
233 void GenerateStoreTransition(Handle<Map> transition, Handle<Name> name, 233 void GenerateRestoreNameAndMap(Handle<Name> name, Handle<Map> transition);
234 Register receiver_reg, Register name_reg,
235 Register value_reg, Register scratch1,
236 Register scratch2, Register scratch3,
237 Label* miss_label, Label* slow);
238 234
239 void GenerateStoreField(LookupIterator* lookup, Register value_reg, 235 void GenerateConstantCheck(Object* constant, Register value_reg,
240 Label* miss_label); 236 Label* miss_label);
237
238 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg,
239 Label* miss_label);
241 240
242 static Builtins::Name SlowBuiltin(Code::Kind kind) { 241 static Builtins::Name SlowBuiltin(Code::Kind kind) {
243 switch (kind) { 242 switch (kind) {
244 case Code::STORE_IC: 243 case Code::STORE_IC:
245 return Builtins::kStoreIC_Slow; 244 return Builtins::kStoreIC_Slow;
246 case Code::KEYED_STORE_IC: 245 case Code::KEYED_STORE_IC:
247 return Builtins::kKeyedStoreIC_Slow; 246 return Builtins::kKeyedStoreIC_Slow;
248 default: 247 default:
249 UNREACHABLE(); 248 UNREACHABLE();
250 } 249 }
(...skipping 15 matching lines...) Expand all
266 265
267 void CompileElementHandlers(MapHandleList* receiver_maps, 266 void CompileElementHandlers(MapHandleList* receiver_maps,
268 CodeHandleList* handlers); 267 CodeHandleList* handlers);
269 268
270 static void GenerateStoreSlow(MacroAssembler* masm); 269 static void GenerateStoreSlow(MacroAssembler* masm);
271 }; 270 };
272 } 271 }
273 } // namespace v8::internal 272 } // namespace v8::internal
274 273
275 #endif // V8_IC_HANDLER_COMPILER_H_ 274 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/arm64/handler-compiler-arm64.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698