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

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: 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') | src/arm/lithium-codegen-arm.cc » ('J')
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 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 2394
2395 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 2395 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2396 public: 2396 public:
2397 explicit LCheckNonSmi(LOperand* value) { 2397 explicit LCheckNonSmi(LOperand* value) {
2398 inputs_[0] = value; 2398 inputs_[0] = value;
2399 } 2399 }
2400 2400
2401 LOperand* value() { return inputs_[0]; } 2401 LOperand* value() { return inputs_[0]; }
2402 2402
2403 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2403 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2404 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2404 }; 2405 };
2405 2406
2406 2407
2407 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> { 2408 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> {
2408 public: 2409 public:
2409 LClampDToUint8(LOperand* unclamped, LOperand* temp) { 2410 LClampDToUint8(LOperand* unclamped, LOperand* temp) {
2410 inputs_[0] = unclamped; 2411 inputs_[0] = unclamped;
2411 temps_[0] = temp; 2412 temps_[0] = temp;
2412 } 2413 }
2413 2414
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 2833
2833 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2834 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2834 }; 2835 };
2835 2836
2836 #undef DECLARE_HYDROGEN_ACCESSOR 2837 #undef DECLARE_HYDROGEN_ACCESSOR
2837 #undef DECLARE_CONCRETE_INSTRUCTION 2838 #undef DECLARE_CONCRETE_INSTRUCTION
2838 2839
2839 } } // namespace v8::internal 2840 } } // namespace v8::internal
2840 2841
2841 #endif // V8_ARM_LITHIUM_ARM_H_ 2842 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/arm/lithium-codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698