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

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

Issue 152683005: A64: Fix addition of external value and int32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/lithium-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 24 matching lines...) Expand all
35 #include "utils.h" 35 #include "utils.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 // Forward declarations. 40 // Forward declarations.
41 class LCodeGen; 41 class LCodeGen;
42 42
43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
44 V(AccessArgumentsAt) \ 44 V(AccessArgumentsAt) \
45 V(AddE) \
45 V(AddI) \ 46 V(AddI) \
46 V(AddS) \ 47 V(AddS) \
47 V(Allocate) \ 48 V(Allocate) \
48 V(ApplyArguments) \ 49 V(ApplyArguments) \
49 V(ArgumentsElements) \ 50 V(ArgumentsElements) \
50 V(ArgumentsLength) \ 51 V(ArgumentsLength) \
51 V(ArithmeticD) \ 52 V(ArithmeticD) \
52 V(ArithmeticT) \ 53 V(ArithmeticT) \
53 V(BitI) \ 54 V(BitI) \
54 V(BitS) \ 55 V(BitS) \
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 556
556 LOperand* arguments() { return inputs_[0]; } 557 LOperand* arguments() { return inputs_[0]; }
557 LOperand* length() { return inputs_[1]; } 558 LOperand* length() { return inputs_[1]; }
558 LOperand* index() { return inputs_[2]; } 559 LOperand* index() { return inputs_[2]; }
559 LOperand* temp() { return temps_[0]; } 560 LOperand* temp() { return temps_[0]; }
560 561
561 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 562 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
562 }; 563 };
563 564
564 565
566 class LAddE V8_FINAL : public LTemplateInstruction<1, 2, 0> {
567 public:
568 LAddE(LOperand* left, LOperand* right) {
569 inputs_[0] = left;
570 inputs_[1] = right;
571 }
572
573 LOperand* left() { return inputs_[0]; }
574 LOperand* right() { return inputs_[1]; }
575
576 DECLARE_CONCRETE_INSTRUCTION(AddE, "add-e")
577 DECLARE_HYDROGEN_ACCESSOR(Add)
578 };
579
580
565 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 581 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
566 public: 582 public:
567 LAddI(LOperand* left, LOperand* right) { 583 LAddI(LOperand* left, LOperand* right) {
568 inputs_[0] = left; 584 inputs_[0] = left;
569 inputs_[1] = right; 585 inputs_[1] = right;
570 } 586 }
571 587
572 LOperand* left() { return inputs_[0]; } 588 LOperand* left() { return inputs_[0]; }
573 LOperand* right() { return inputs_[1]; } 589 LOperand* right() { return inputs_[1]; }
574 590
(...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2946 2962
2947 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2948 }; 2964 };
2949 2965
2950 #undef DECLARE_HYDROGEN_ACCESSOR 2966 #undef DECLARE_HYDROGEN_ACCESSOR
2951 #undef DECLARE_CONCRETE_INSTRUCTION 2967 #undef DECLARE_CONCRETE_INSTRUCTION
2952 2968
2953 } } // namespace v8::internal 2969 } } // namespace v8::internal
2954 2970
2955 #endif // V8_A64_LITHIUM_A64_H_ 2971 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698