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

Side by Side Diff: src/hydrogen.h

Issue 19798002: Faster to number conversion (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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 | « no previous file | 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 Representation representation = Representation::Tagged()); 1111 Representation representation = Representation::Tagged());
1112 1112
1113 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); 1113 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
1114 1114
1115 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); 1115 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1116 1116
1117 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1117 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1118 1118
1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); 1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context);
1120 1120
1121 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1122
1123 void PushAndAdd(HInstruction* instr);
1124
1121 enum SoftDeoptimizeMode { 1125 enum SoftDeoptimizeMode {
1122 MUST_EMIT_SOFT_DEOPT, 1126 MUST_EMIT_SOFT_DEOPT,
1123 CAN_OMIT_SOFT_DEOPT 1127 CAN_OMIT_SOFT_DEOPT
1124 }; 1128 };
1125 1129
1126 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); 1130 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT);
1127 1131
1128 class IfBuilder { 1132 class IfBuilder {
1129 public: 1133 public:
1130 explicit IfBuilder(HGraphBuilder* builder, 1134 explicit IfBuilder(HGraphBuilder* builder,
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 HBasicBlock* false_block); 1663 HBasicBlock* false_block);
1660 1664
1661 // Visit an argument subexpression and emit a push to the outgoing arguments. 1665 // Visit an argument subexpression and emit a push to the outgoing arguments.
1662 void VisitArgument(Expression* expr); 1666 void VisitArgument(Expression* expr);
1663 1667
1664 void VisitArgumentList(ZoneList<Expression*>* arguments); 1668 void VisitArgumentList(ZoneList<Expression*>* arguments);
1665 1669
1666 // Visit a list of expressions from left to right, each in a value context. 1670 // Visit a list of expressions from left to right, each in a value context.
1667 void VisitExpressions(ZoneList<Expression*>* exprs); 1671 void VisitExpressions(ZoneList<Expression*>* exprs);
1668 1672
1669 void PushAndAdd(HInstruction* instr);
1670
1671 // Remove the arguments from the bailout environment and emit instructions 1673 // Remove the arguments from the bailout environment and emit instructions
1672 // to push them as outgoing parameters. 1674 // to push them as outgoing parameters.
1673 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 1675 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
1674 1676
1675 void SetUpScope(Scope* scope); 1677 void SetUpScope(Scope* scope);
1676 virtual void VisitStatements(ZoneList<Statement*>* statements); 1678 virtual void VisitStatements(ZoneList<Statement*>* statements);
1677 1679
1678 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 1680 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
1679 AST_NODE_LIST(DECLARE_VISIT) 1681 AST_NODE_LIST(DECLARE_VISIT)
1680 #undef DECLARE_VISIT 1682 #undef DECLARE_VISIT
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 EmbeddedVector<char, 64> filename_; 2097 EmbeddedVector<char, 64> filename_;
2096 HeapStringAllocator string_allocator_; 2098 HeapStringAllocator string_allocator_;
2097 StringStream trace_; 2099 StringStream trace_;
2098 int indent_; 2100 int indent_;
2099 }; 2101 };
2100 2102
2101 2103
2102 } } // namespace v8::internal 2104 } } // namespace v8::internal
2103 2105
2104 #endif // V8_HYDROGEN_H_ 2106 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698