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

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

Issue 15858006: Tag length of FixedArrayBase and smi-array[x] as smi representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Split check-smi-and-return from check-smi 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/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 V(CallNew) \ 63 V(CallNew) \
64 V(CallNewArray) \ 64 V(CallNewArray) \
65 V(CallRuntime) \ 65 V(CallRuntime) \
66 V(CallStub) \ 66 V(CallStub) \
67 V(CheckFunction) \ 67 V(CheckFunction) \
68 V(CheckInstanceType) \ 68 V(CheckInstanceType) \
69 V(CheckMaps) \ 69 V(CheckMaps) \
70 V(CheckNonSmi) \ 70 V(CheckNonSmi) \
71 V(CheckPrototypeMaps) \ 71 V(CheckPrototypeMaps) \
72 V(CheckSmi) \ 72 V(CheckSmi) \
73 V(CheckSmiAndReturn) \
73 V(ClampDToUint8) \ 74 V(ClampDToUint8) \
74 V(ClampIToUint8) \ 75 V(ClampIToUint8) \
75 V(ClampTToUint8) \ 76 V(ClampTToUint8) \
76 V(ClampTToUint8NoSSE2) \ 77 V(ClampTToUint8NoSSE2) \
77 V(ClassOfTestAndBranch) \ 78 V(ClassOfTestAndBranch) \
78 V(CmpIDAndBranch) \ 79 V(CmpIDAndBranch) \
79 V(CmpObjectEqAndBranch) \ 80 V(CmpObjectEqAndBranch) \
80 V(CmpMapAndBranch) \ 81 V(CmpMapAndBranch) \
81 V(CmpT) \ 82 V(CmpT) \
82 V(CmpConstantEqAndBranch) \ 83 V(CmpConstantEqAndBranch) \
(...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") 2455 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2455 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) 2456 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2456 2457
2457 ZoneList<Handle<JSObject> >* prototypes() const { 2458 ZoneList<Handle<JSObject> >* prototypes() const {
2458 return hydrogen()->prototypes(); 2459 return hydrogen()->prototypes();
2459 } 2460 }
2460 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } 2461 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2461 }; 2462 };
2462 2463
2463 2464
2464 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2465 class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
2465 public: 2466 public:
2466 explicit LCheckSmi(LOperand* value) { 2467 explicit LCheckSmi(LOperand* value) {
2467 inputs_[0] = value; 2468 inputs_[0] = value;
2468 } 2469 }
2469 2470
2470 LOperand* value() { return inputs_[0]; } 2471 LOperand* value() { return inputs_[0]; }
2471 2472
2472 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2473 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2473 }; 2474 };
2474 2475
2475 2476
2477 class LCheckSmiAndReturn: public LTemplateInstruction<1, 1, 0> {
2478 public:
2479 explicit LCheckSmiAndReturn(LOperand* value) {
2480 inputs_[0] = value;
2481 }
2482
2483 LOperand* value() { return inputs_[0]; }
2484
2485 DECLARE_CONCRETE_INSTRUCTION(CheckSmiAndReturn, "check-smi-and-return")
2486 };
2487
2488
2476 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> { 2489 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
2477 public: 2490 public:
2478 explicit LClampDToUint8(LOperand* value) { 2491 explicit LClampDToUint8(LOperand* value) {
2479 inputs_[0] = value; 2492 inputs_[0] = value;
2480 } 2493 }
2481 2494
2482 LOperand* unclamped() { return inputs_[0]; } 2495 LOperand* unclamped() { return inputs_[0]; }
2483 2496
2484 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") 2497 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8")
2485 }; 2498 };
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 2987
2975 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2976 }; 2989 };
2977 2990
2978 #undef DECLARE_HYDROGEN_ACCESSOR 2991 #undef DECLARE_HYDROGEN_ACCESSOR
2979 #undef DECLARE_CONCRETE_INSTRUCTION 2992 #undef DECLARE_CONCRETE_INSTRUCTION
2980 2993
2981 } } // namespace v8::internal 2994 } } // namespace v8::internal
2982 2995
2983 #endif // V8_IA32_LITHIUM_IA32_H_ 2996 #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