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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 21065006: Replace HCheckPrototypeMaps by explicit map checks of constant values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Prepare all HConstant js objects Created 7 years, 4 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/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 V(CallNamed) \ 61 V(CallNamed) \
62 V(CallNew) \ 62 V(CallNew) \
63 V(CallNewArray) \ 63 V(CallNewArray) \
64 V(CallRuntime) \ 64 V(CallRuntime) \
65 V(CallStub) \ 65 V(CallStub) \
66 V(CheckFunction) \ 66 V(CheckFunction) \
67 V(CheckInstanceType) \ 67 V(CheckInstanceType) \
68 V(CheckMaps) \ 68 V(CheckMaps) \
69 V(CheckMapValue) \ 69 V(CheckMapValue) \
70 V(CheckNonSmi) \ 70 V(CheckNonSmi) \
71 V(CheckPrototypeMaps) \
72 V(CheckSmi) \ 71 V(CheckSmi) \
73 V(ClampDToUint8) \ 72 V(ClampDToUint8) \
74 V(ClampIToUint8) \ 73 V(ClampIToUint8) \
75 V(ClampTToUint8) \ 74 V(ClampTToUint8) \
76 V(ClampTToUint8NoSSE2) \ 75 V(ClampTToUint8NoSSE2) \
77 V(ClassOfTestAndBranch) \ 76 V(ClassOfTestAndBranch) \
78 V(CompareNumericAndBranch) \ 77 V(CompareNumericAndBranch) \
79 V(CmpObjectEqAndBranch) \ 78 V(CmpObjectEqAndBranch) \
80 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
81 V(CmpT) \ 80 V(CmpT) \
(...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 inputs_[0] = value; 2457 inputs_[0] = value;
2459 } 2458 }
2460 2459
2461 LOperand* value() { return inputs_[0]; } 2460 LOperand* value() { return inputs_[0]; }
2462 2461
2463 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") 2462 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
2464 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) 2463 DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
2465 }; 2464 };
2466 2465
2467 2466
2468 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
2469 public:
2470 explicit LCheckPrototypeMaps(LOperand* temp) {
2471 temps_[0] = temp;
2472 }
2473
2474 LOperand* temp() { return temps_[0]; }
2475
2476 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2477 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2478
2479 ZoneList<Handle<JSObject> >* prototypes() const {
2480 return hydrogen()->prototypes();
2481 }
2482 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2483 };
2484
2485
2486 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2467 class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
2487 public: 2468 public:
2488 explicit LCheckSmi(LOperand* value) { 2469 explicit LCheckSmi(LOperand* value) {
2489 inputs_[0] = value; 2470 inputs_[0] = value;
2490 } 2471 }
2491 2472
2492 LOperand* value() { return inputs_[0]; } 2473 LOperand* value() { return inputs_[0]; }
2493 2474
2494 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2475 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2495 }; 2476 };
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 2913
2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2934 }; 2915 };
2935 2916
2936 #undef DECLARE_HYDROGEN_ACCESSOR 2917 #undef DECLARE_HYDROGEN_ACCESSOR
2937 #undef DECLARE_CONCRETE_INSTRUCTION 2918 #undef DECLARE_CONCRETE_INSTRUCTION
2938 2919
2939 } } // namespace v8::internal 2920 } } // namespace v8::internal
2940 2921
2941 #endif // V8_IA32_LITHIUM_IA32_H_ 2922 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698