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/x64/lithium-x64.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
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 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 2352
2353 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 2353 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2354 public: 2354 public:
2355 explicit LCheckNonSmi(LOperand* value) { 2355 explicit LCheckNonSmi(LOperand* value) {
2356 inputs_[0] = value; 2356 inputs_[0] = value;
2357 } 2357 }
2358 2358
2359 LOperand* value() { return inputs_[0]; } 2359 LOperand* value() { return inputs_[0]; }
2360 2360
2361 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2361 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2362 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2362 }; 2363 };
2363 2364
2364 2365
2365 class LAllocate: public LTemplateInstruction<1, 1, 1> { 2366 class LAllocate: public LTemplateInstruction<1, 1, 1> {
2366 public: 2367 public:
2367 LAllocate(LOperand* size, LOperand* temp) { 2368 LAllocate(LOperand* size, LOperand* temp) {
2368 inputs_[0] = size; 2369 inputs_[0] = size;
2369 temps_[0] = temp; 2370 temps_[0] = temp;
2370 } 2371 }
2371 2372
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 2735
2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2736 }; 2737 };
2737 2738
2738 #undef DECLARE_HYDROGEN_ACCESSOR 2739 #undef DECLARE_HYDROGEN_ACCESSOR
2739 #undef DECLARE_CONCRETE_INSTRUCTION 2740 #undef DECLARE_CONCRETE_INSTRUCTION
2740 2741
2741 } } // namespace v8::int 2742 } } // namespace v8::int
2742 2743
2743 #endif // V8_X64_LITHIUM_X64_H_ 2744 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698