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

Side by Side Diff: src/ast.cc

Issue 10905308: Do not go to slow mode and back to fast in initializer blocks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/ast.h ('k') | src/ia32/full-codegen-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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Expression* target, 119 Expression* target,
120 Expression* value, 120 Expression* value,
121 int pos) 121 int pos)
122 : Expression(isolate), 122 : Expression(isolate),
123 op_(op), 123 op_(op),
124 target_(target), 124 target_(target),
125 value_(value), 125 value_(value),
126 pos_(pos), 126 pos_(pos),
127 binary_operation_(NULL), 127 binary_operation_(NULL),
128 assignment_id_(GetNextId(isolate)), 128 assignment_id_(GetNextId(isolate)),
129 block_start_(false),
130 block_end_(false),
131 is_monomorphic_(false) { } 129 is_monomorphic_(false) { }
132 130
133 131
134 Token::Value Assignment::binary_op() const { 132 Token::Value Assignment::binary_op() const {
135 switch (op_) { 133 switch (op_) {
136 case Token::ASSIGN_BIT_OR: return Token::BIT_OR; 134 case Token::ASSIGN_BIT_OR: return Token::BIT_OR;
137 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR; 135 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR;
138 case Token::ASSIGN_BIT_AND: return Token::BIT_AND; 136 case Token::ASSIGN_BIT_AND: return Token::BIT_AND;
139 case Token::ASSIGN_SHL: return Token::SHL; 137 case Token::ASSIGN_SHL: return Token::SHL;
140 case Token::ASSIGN_SAR: return Token::SAR; 138 case Token::ASSIGN_SAR: return Token::SAR;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1133 str = arr; 1131 str = arr;
1134 } else { 1132 } else {
1135 str = DoubleToCString(handle_->Number(), buffer); 1133 str = DoubleToCString(handle_->Number(), buffer);
1136 } 1134 }
1137 return FACTORY->NewStringFromAscii(CStrVector(str)); 1135 return FACTORY->NewStringFromAscii(CStrVector(str));
1138 } 1136 }
1139 1137
1140 1138
1141 } } // namespace v8::internal 1139 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698