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

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

Issue 15927005: MIPS: Tag length of FixedArrayBase and smi-array[x] as smi representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nit. Created 7 years, 7 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 V(CallNew) \ 69 V(CallNew) \
70 V(CallNewArray) \ 70 V(CallNewArray) \
71 V(CallRuntime) \ 71 V(CallRuntime) \
72 V(CallStub) \ 72 V(CallStub) \
73 V(CheckFunction) \ 73 V(CheckFunction) \
74 V(CheckInstanceType) \ 74 V(CheckInstanceType) \
75 V(CheckMaps) \ 75 V(CheckMaps) \
76 V(CheckNonSmi) \ 76 V(CheckNonSmi) \
77 V(CheckPrototypeMaps) \ 77 V(CheckPrototypeMaps) \
78 V(CheckSmi) \ 78 V(CheckSmi) \
79 V(CheckSmiAndReturn) \
79 V(ClampDToUint8) \ 80 V(ClampDToUint8) \
80 V(ClampIToUint8) \ 81 V(ClampIToUint8) \
81 V(ClampTToUint8) \ 82 V(ClampTToUint8) \
82 V(ClassOfTestAndBranch) \ 83 V(ClassOfTestAndBranch) \
83 V(CmpConstantEqAndBranch) \ 84 V(CmpConstantEqAndBranch) \
84 V(CmpIDAndBranch) \ 85 V(CmpIDAndBranch) \
85 V(CmpObjectEqAndBranch) \ 86 V(CmpObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 87 V(CmpMapAndBranch) \
87 V(CmpT) \ 88 V(CmpT) \
88 V(ConstantD) \ 89 V(ConstantD) \
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") 2322 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2322 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) 2323 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2323 2324
2324 ZoneList<Handle<JSObject> >* prototypes() const { 2325 ZoneList<Handle<JSObject> >* prototypes() const {
2325 return hydrogen()->prototypes(); 2326 return hydrogen()->prototypes();
2326 } 2327 }
2327 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } 2328 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2328 }; 2329 };
2329 2330
2330 2331
2331 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2332 class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
2332 public: 2333 public:
2333 explicit LCheckSmi(LOperand* value) { 2334 explicit LCheckSmi(LOperand* value) {
2334 inputs_[0] = value; 2335 inputs_[0] = value;
2335 } 2336 }
2336 2337
2337 LOperand* value() { return inputs_[0]; } 2338 LOperand* value() { return inputs_[0]; }
2338 2339
2339 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2340 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2340 }; 2341 };
2341 2342
2342 2343
2344 class LCheckSmiAndReturn: public LTemplateInstruction<1, 1, 0> {
2345 public:
2346 explicit LCheckSmiAndReturn(LOperand* value) {
2347 inputs_[0] = value;
2348 }
2349
2350 LOperand* value() { return inputs_[0]; }
2351
2352 DECLARE_CONCRETE_INSTRUCTION(CheckSmiAndReturn, "check-smi-and-return")
2353 };
2354
2355
2343 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 2356 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2344 public: 2357 public:
2345 explicit LCheckNonSmi(LOperand* value) { 2358 explicit LCheckNonSmi(LOperand* value) {
2346 inputs_[0] = value; 2359 inputs_[0] = value;
2347 } 2360 }
2348 2361
2349 LOperand* value() { return inputs_[0]; } 2362 LOperand* value() { return inputs_[0]; }
2350 2363
2351 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2364 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2352 }; 2365 };
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 2804
2792 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2805 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2793 }; 2806 };
2794 2807
2795 #undef DECLARE_HYDROGEN_ACCESSOR 2808 #undef DECLARE_HYDROGEN_ACCESSOR
2796 #undef DECLARE_CONCRETE_INSTRUCTION 2809 #undef DECLARE_CONCRETE_INSTRUCTION
2797 2810
2798 } } // namespace v8::internal 2811 } } // namespace v8::internal
2799 2812
2800 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2813 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698