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

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

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 6 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 | « no previous file | src/arm/lithium-arm.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 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 2414
2415 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 2415 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2416 public: 2416 public:
2417 explicit LCheckNonSmi(LOperand* value) { 2417 explicit LCheckNonSmi(LOperand* value) {
2418 inputs_[0] = value; 2418 inputs_[0] = value;
2419 } 2419 }
2420 2420
2421 LOperand* value() { return inputs_[0]; } 2421 LOperand* value() { return inputs_[0]; }
2422 2422
2423 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2423 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2424 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2424 }; 2425 };
2425 2426
2426 2427
2427 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> { 2428 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> {
2428 public: 2429 public:
2429 LClampDToUint8(LOperand* unclamped, LOperand* temp) { 2430 LClampDToUint8(LOperand* unclamped, LOperand* temp) {
2430 inputs_[0] = unclamped; 2431 inputs_[0] = unclamped;
2431 temps_[0] = temp; 2432 temps_[0] = temp;
2432 } 2433 }
2433 2434
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 2852
2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2853 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2853 }; 2854 };
2854 2855
2855 #undef DECLARE_HYDROGEN_ACCESSOR 2856 #undef DECLARE_HYDROGEN_ACCESSOR
2856 #undef DECLARE_CONCRETE_INSTRUCTION 2857 #undef DECLARE_CONCRETE_INSTRUCTION
2857 2858
2858 } } // namespace v8::internal 2859 } } // namespace v8::internal
2859 2860
2860 #endif // V8_ARM_LITHIUM_ARM_H_ 2861 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698