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

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

Issue 9167011: Support inlining and crankshaft optimization of Math.random. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 8 years, 11 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(MulI) \ 128 V(MulI) \
129 V(NumberTagD) \ 129 V(NumberTagD) \
130 V(NumberTagI) \ 130 V(NumberTagI) \
131 V(NumberUntagD) \ 131 V(NumberUntagD) \
132 V(ObjectLiteralFast) \ 132 V(ObjectLiteralFast) \
133 V(ObjectLiteralGeneric) \ 133 V(ObjectLiteralGeneric) \
134 V(OsrEntry) \ 134 V(OsrEntry) \
135 V(OuterContext) \ 135 V(OuterContext) \
136 V(Parameter) \ 136 V(Parameter) \
137 V(Power) \ 137 V(Power) \
138 V(Random) \
138 V(PushArgument) \ 139 V(PushArgument) \
139 V(RegExpLiteral) \ 140 V(RegExpLiteral) \
140 V(Return) \ 141 V(Return) \
141 V(ShiftI) \ 142 V(ShiftI) \
142 V(SmiTag) \ 143 V(SmiTag) \
143 V(SmiUntag) \ 144 V(SmiUntag) \
144 V(StackCheck) \ 145 V(StackCheck) \
145 V(StoreContextSlot) \ 146 V(StoreContextSlot) \
146 V(StoreGlobalCell) \ 147 V(StoreGlobalCell) \
147 V(StoreGlobalGeneric) \ 148 V(StoreGlobalGeneric) \
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 LPower(LOperand* left, LOperand* right) { 1037 LPower(LOperand* left, LOperand* right) {
1037 inputs_[0] = left; 1038 inputs_[0] = left;
1038 inputs_[1] = right; 1039 inputs_[1] = right;
1039 } 1040 }
1040 1041
1041 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1042 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1042 DECLARE_HYDROGEN_ACCESSOR(Power) 1043 DECLARE_HYDROGEN_ACCESSOR(Power)
1043 }; 1044 };
1044 1045
1045 1046
1047 class LRandom: public LTemplateInstruction<1, 1, 0> {
1048 public:
1049 explicit LRandom(LOperand* global_object) {
1050 inputs_[0] = global_object;
1051 }
1052
1053 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
1054 DECLARE_HYDROGEN_ACCESSOR(Random)
1055 };
1056
1057
1046 class LArithmeticD: public LTemplateInstruction<1, 2, 0> { 1058 class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
1047 public: 1059 public:
1048 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) 1060 LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1049 : op_(op) { 1061 : op_(op) {
1050 inputs_[0] = left; 1062 inputs_[0] = left;
1051 inputs_[1] = right; 1063 inputs_[1] = right;
1052 } 1064 }
1053 1065
1054 Token::Value op() const { return op_; } 1066 Token::Value op() const { return op_; }
1055 1067
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 2387
2376 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2377 }; 2389 };
2378 2390
2379 #undef DECLARE_HYDROGEN_ACCESSOR 2391 #undef DECLARE_HYDROGEN_ACCESSOR
2380 #undef DECLARE_CONCRETE_INSTRUCTION 2392 #undef DECLARE_CONCRETE_INSTRUCTION
2381 2393
2382 } } // namespace v8::internal 2394 } } // namespace v8::internal
2383 2395
2384 #endif // V8_IA32_LITHIUM_IA32_H_ 2396 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698