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

Side by Side Diff: src/ic.h

Issue 16226024: Add LoadIC_Slow builtin and use it for loading properties from primitive values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 7 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/ia32/ic-ia32.cc ('k') | src/ic.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 362 }
363 363
364 // Code generator routines. 364 // Code generator routines.
365 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 365 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
366 static void GeneratePreMonomorphic(MacroAssembler* masm) { 366 static void GeneratePreMonomorphic(MacroAssembler* masm) {
367 GenerateMiss(masm); 367 GenerateMiss(masm);
368 } 368 }
369 static void GenerateMiss(MacroAssembler* masm); 369 static void GenerateMiss(MacroAssembler* masm);
370 static void GenerateMegamorphic(MacroAssembler* masm); 370 static void GenerateMegamorphic(MacroAssembler* masm);
371 static void GenerateNormal(MacroAssembler* masm); 371 static void GenerateNormal(MacroAssembler* masm);
372 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
372 373
373 MUST_USE_RESULT MaybeObject* Load(State state, 374 MUST_USE_RESULT MaybeObject* Load(State state,
374 Handle<Object> object, 375 Handle<Object> object,
375 Handle<String> name); 376 Handle<String> name);
376 377
377 protected: 378 protected:
378 virtual Code::Kind kind() const { return Code::LOAD_IC; } 379 virtual Code::Kind kind() const { return Code::LOAD_IC; }
379 380
380 virtual Handle<Code> generic_stub() const { 381 virtual Handle<Code> generic_stub() const {
381 UNREACHABLE(); 382 return isolate()->builtins()->LoadIC_Slow();
382 return Handle<Code>::null();
383 } 383 }
384 384
385 virtual Handle<Code> megamorphic_stub() { 385 virtual Handle<Code> megamorphic_stub() {
386 return isolate()->builtins()->LoadIC_Megamorphic(); 386 return isolate()->builtins()->LoadIC_Megamorphic();
387 } 387 }
388 388
389 // Update the inline cache and the global stub cache based on the 389 // Update the inline cache and the global stub cache based on the
390 // lookup result. 390 // lookup result.
391 void UpdateCaches(LookupResult* lookup, 391 void UpdateCaches(LookupResult* lookup,
392 State state, 392 State state,
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 809
810 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); 810 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure);
811 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure); 811 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure);
812 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 812 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
813 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 813 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
814 814
815 815
816 } } // namespace v8::internal 816 } } // namespace v8::internal
817 817
818 #endif // V8_IC_H_ 818 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698