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

Side by Side Diff: src/hydrogen.h

Issue 78183002: Make BuildBinaryOperation use ReturnValue instead of ReturnInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add comment. Created 7 years, 1 month 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/code-stubs-hydrogen.cc ('k') | src/hydrogen.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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 store_map->SkipWriteBarrier(); 1331 store_map->SkipWriteBarrier();
1332 return store_map; 1332 return store_map;
1333 } 1333 }
1334 HLoadNamedField* AddLoadElements(HValue* object); 1334 HLoadNamedField* AddLoadElements(HValue* object);
1335 1335
1336 bool MatchRotateRight(HValue* left, 1336 bool MatchRotateRight(HValue* left,
1337 HValue* right, 1337 HValue* right,
1338 HValue** operand, 1338 HValue** operand,
1339 HValue** shift_amount); 1339 HValue** shift_amount);
1340 1340
1341 HInstruction* BuildBinaryOperation(Token::Value op, 1341 HValue* BuildBinaryOperation(Token::Value op,
1342 HValue* left, 1342 HValue* left,
1343 HValue* right, 1343 HValue* right,
1344 Handle<Type> left_type, 1344 Handle<Type> left_type,
1345 Handle<Type> right_type, 1345 Handle<Type> right_type,
1346 Handle<Type> result_type, 1346 Handle<Type> result_type,
1347 Maybe<int> fixed_right_arg, 1347 Maybe<int> fixed_right_arg,
1348 bool binop_stub = false); 1348 bool binop_stub = false);
1349 1349
1350 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1350 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1351 1351
1352 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1352 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1353 1353
1354 HValue* EnforceNumberType(HValue* number, Handle<Type> expected); 1354 HValue* EnforceNumberType(HValue* number, Handle<Type> expected);
1355 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1355 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1356 1356
1357 void FinishExitWithHardDeoptimization(const char* reason, 1357 void FinishExitWithHardDeoptimization(const char* reason,
1358 HBasicBlock* continuation); 1358 HBasicBlock* continuation);
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 Handle<String> name); 2267 Handle<String> name);
2268 void HandleLiteralCompareTypeof(CompareOperation* expr, 2268 void HandleLiteralCompareTypeof(CompareOperation* expr,
2269 Expression* sub_expr, 2269 Expression* sub_expr,
2270 Handle<String> check); 2270 Handle<String> check);
2271 void HandleLiteralCompareNil(CompareOperation* expr, 2271 void HandleLiteralCompareNil(CompareOperation* expr,
2272 Expression* sub_expr, 2272 Expression* sub_expr,
2273 NilValue nil); 2273 NilValue nil);
2274 2274
2275 HInstruction* BuildStringCharCodeAt(HValue* string, 2275 HInstruction* BuildStringCharCodeAt(HValue* string,
2276 HValue* index); 2276 HValue* index);
2277 HInstruction* BuildBinaryOperation(BinaryOperation* expr, 2277 HValue* BuildBinaryOperation(BinaryOperation* expr,
2278 HValue* left, 2278 HValue* left,
2279 HValue* right); 2279 HValue* right);
2280 HInstruction* BuildIncrement(bool returns_original_input, 2280 HInstruction* BuildIncrement(bool returns_original_input,
2281 CountOperation* expr); 2281 CountOperation* expr);
2282 HInstruction* BuildLoadKeyedGeneric(HValue* object, 2282 HInstruction* BuildLoadKeyedGeneric(HValue* object,
2283 HValue* key); 2283 HValue* key);
2284 2284
2285 HInstruction* TryBuildConsolidatedElementLoad(HValue* object, 2285 HInstruction* TryBuildConsolidatedElementLoad(HValue* object,
2286 HValue* key, 2286 HValue* key,
2287 HValue* val, 2287 HValue* val,
2288 SmallMapList* maps); 2288 SmallMapList* maps);
2289 2289
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 } 2577 }
2578 2578
2579 private: 2579 private:
2580 HGraphBuilder* builder_; 2580 HGraphBuilder* builder_;
2581 }; 2581 };
2582 2582
2583 2583
2584 } } // namespace v8::internal 2584 } } // namespace v8::internal
2585 2585
2586 #endif // V8_HYDROGEN_H_ 2586 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698