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

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

Issue 17887007: MIPS: Avoid Unnecessary Smi Checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 2387
2388 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 2388 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2389 public: 2389 public:
2390 explicit LCheckNonSmi(LOperand* value) { 2390 explicit LCheckNonSmi(LOperand* value) {
2391 inputs_[0] = value; 2391 inputs_[0] = value;
2392 } 2392 }
2393 2393
2394 LOperand* value() { return inputs_[0]; } 2394 LOperand* value() { return inputs_[0]; }
2395 2395
2396 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2396 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2397 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2397 }; 2398 };
2398 2399
2399 2400
2400 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> { 2401 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> {
2401 public: 2402 public:
2402 LClampDToUint8(LOperand* unclamped, LOperand* temp) { 2403 LClampDToUint8(LOperand* unclamped, LOperand* temp) {
2403 inputs_[0] = unclamped; 2404 inputs_[0] = unclamped;
2404 temps_[0] = temp; 2405 temps_[0] = temp;
2405 } 2406 }
2406 2407
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 2824
2824 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2825 }; 2826 };
2826 2827
2827 #undef DECLARE_HYDROGEN_ACCESSOR 2828 #undef DECLARE_HYDROGEN_ACCESSOR
2828 #undef DECLARE_CONCRETE_INSTRUCTION 2829 #undef DECLARE_CONCRETE_INSTRUCTION
2829 2830
2830 } } // namespace v8::internal 2831 } } // namespace v8::internal
2831 2832
2832 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2833 #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