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

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

Issue 23697002: Implement proper map checks of captured objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Toon Verwaest. Created 7 years, 3 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 V(CallConstantFunction) \ 55 V(CallConstantFunction) \
56 V(CallFunction) \ 56 V(CallFunction) \
57 V(CallGlobal) \ 57 V(CallGlobal) \
58 V(CallKeyed) \ 58 V(CallKeyed) \
59 V(CallKnownGlobal) \ 59 V(CallKnownGlobal) \
60 V(CallNamed) \ 60 V(CallNamed) \
61 V(CallNew) \ 61 V(CallNew) \
62 V(CallNewArray) \ 62 V(CallNewArray) \
63 V(CallRuntime) \ 63 V(CallRuntime) \
64 V(CallStub) \ 64 V(CallStub) \
65 V(CheckFunction) \
66 V(CheckInstanceType) \ 65 V(CheckInstanceType) \
67 V(CheckMaps) \ 66 V(CheckMaps) \
68 V(CheckMapValue) \ 67 V(CheckMapValue) \
69 V(CheckNonSmi) \ 68 V(CheckNonSmi) \
70 V(CheckSmi) \ 69 V(CheckSmi) \
70 V(CheckValue) \
71 V(ClampDToUint8) \ 71 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 72 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 73 V(ClampTToUint8) \
74 V(ClassOfTestAndBranch) \ 74 V(ClassOfTestAndBranch) \
75 V(CompareNumericAndBranch) \ 75 V(CompareNumericAndBranch) \
76 V(CmpObjectEqAndBranch) \ 76 V(CmpObjectEqAndBranch) \
77 V(CmpHoleAndBranch) \ 77 V(CmpHoleAndBranch) \
78 V(CmpMapAndBranch) \ 78 V(CmpMapAndBranch) \
79 V(CmpT) \ 79 V(CmpT) \
80 V(ConstantD) \ 80 V(ConstantD) \
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 inputs_[0] = char_code; 2235 inputs_[0] = char_code;
2236 } 2236 }
2237 2237
2238 LOperand* char_code() { return inputs_[0]; } 2238 LOperand* char_code() { return inputs_[0]; }
2239 2239
2240 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") 2240 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
2241 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) 2241 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
2242 }; 2242 };
2243 2243
2244 2244
2245 class LCheckFunction V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2245 class LCheckValue V8_FINAL : public LTemplateInstruction<0, 1, 0> {
2246 public: 2246 public:
2247 explicit LCheckFunction(LOperand* value) { 2247 explicit LCheckValue(LOperand* value) {
2248 inputs_[0] = value; 2248 inputs_[0] = value;
2249 } 2249 }
2250 2250
2251 LOperand* value() { return inputs_[0]; } 2251 LOperand* value() { return inputs_[0]; }
2252 2252
2253 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 2253 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value")
2254 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 2254 DECLARE_HYDROGEN_ACCESSOR(CheckValue)
2255 }; 2255 };
2256 2256
2257 2257
2258 class LCheckInstanceType V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2258 class LCheckInstanceType V8_FINAL : public LTemplateInstruction<0, 1, 0> {
2259 public: 2259 public:
2260 explicit LCheckInstanceType(LOperand* value) { 2260 explicit LCheckInstanceType(LOperand* value) {
2261 inputs_[0] = value; 2261 inputs_[0] = value;
2262 } 2262 }
2263 2263
2264 LOperand* value() { return inputs_[0]; } 2264 LOperand* value() { return inputs_[0]; }
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 2690
2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2692 }; 2692 };
2693 2693
2694 #undef DECLARE_HYDROGEN_ACCESSOR 2694 #undef DECLARE_HYDROGEN_ACCESSOR
2695 #undef DECLARE_CONCRETE_INSTRUCTION 2695 #undef DECLARE_CONCRETE_INSTRUCTION
2696 2696
2697 } } // namespace v8::int 2697 } } // namespace v8::int
2698 2698
2699 #endif // V8_X64_LITHIUM_X64_H_ 2699 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698