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

Side by Side Diff: src/ic.h

Issue 166883002: Remove HandlerKindField and just encode the handlerkind as the only extra-ic-state. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return false; 313 return false;
314 } 314 }
315 } 315 }
316 316
317 // Code generator routines. 317 // Code generator routines.
318 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 318 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
319 static void GeneratePreMonomorphic(MacroAssembler* masm) { 319 static void GeneratePreMonomorphic(MacroAssembler* masm) {
320 GenerateMiss(masm); 320 GenerateMiss(masm);
321 } 321 }
322 static void GenerateMiss(MacroAssembler* masm); 322 static void GenerateMiss(MacroAssembler* masm);
323 static void GenerateMegamorphic(MacroAssembler* masm, 323 static void GenerateMegamorphic(MacroAssembler* masm);
324 ExtraICState extra_state);
325 static void GenerateNormal(MacroAssembler* masm); 324 static void GenerateNormal(MacroAssembler* masm);
326 static void GenerateRuntimeGetProperty(MacroAssembler* masm); 325 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
327 326
328 static Handle<Code> initialize_stub(Isolate* isolate, 327 static Handle<Code> initialize_stub(Isolate* isolate,
329 ExtraICState extra_state); 328 ExtraICState extra_state);
330 329
331 MUST_USE_RESULT MaybeObject* Load(Handle<Object> object, 330 MUST_USE_RESULT MaybeObject* Load(Handle<Object> object,
332 Handle<String> name); 331 Handle<String> name);
333 332
334 protected: 333 protected:
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 return StrictModeState::decode(extra_ic_state()); 474 return StrictModeState::decode(extra_ic_state());
476 } 475 }
477 476
478 // Code generators for stub routines. Only called once at startup. 477 // Code generators for stub routines. Only called once at startup.
479 static void GenerateSlow(MacroAssembler* masm); 478 static void GenerateSlow(MacroAssembler* masm);
480 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 479 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
481 static void GeneratePreMonomorphic(MacroAssembler* masm) { 480 static void GeneratePreMonomorphic(MacroAssembler* masm) {
482 GenerateMiss(masm); 481 GenerateMiss(masm);
483 } 482 }
484 static void GenerateMiss(MacroAssembler* masm); 483 static void GenerateMiss(MacroAssembler* masm);
485 static void GenerateMegamorphic(MacroAssembler* masm, 484 static void GenerateMegamorphic(MacroAssembler* masm);
486 ExtraICState extra_ic_state);
487 static void GenerateNormal(MacroAssembler* masm); 485 static void GenerateNormal(MacroAssembler* masm);
488 static void GenerateRuntimeSetProperty(MacroAssembler* masm, 486 static void GenerateRuntimeSetProperty(MacroAssembler* masm,
489 StrictModeFlag strict_mode); 487 StrictModeFlag strict_mode);
490 488
491 static Handle<Code> initialize_stub(Isolate* isolate, 489 static Handle<Code> initialize_stub(Isolate* isolate,
492 StrictModeFlag strict_mode); 490 StrictModeFlag strict_mode);
493 491
494 MUST_USE_RESULT MaybeObject* Store( 492 MUST_USE_RESULT MaybeObject* Store(
495 Handle<Object> object, 493 Handle<Object> object,
496 Handle<String> name, 494 Handle<String> name,
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); 890 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss);
893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); 891 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss);
894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_MissWithAllocationSite); 892 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_MissWithAllocationSite);
895 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
896 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
897 895
898 896
899 } } // namespace v8::internal 897 } } // namespace v8::internal
900 898
901 #endif // V8_IC_H_ 899 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698