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

Side by Side Diff: src/ast.cc

Issue 11035053: Rollback trunk to bleeding_edge revision 12525 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 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/bootstrapper.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),
129 is_monomorphic_(false) { } 131 is_monomorphic_(false) { }
130 132
131 133
132 Token::Value Assignment::binary_op() const { 134 Token::Value Assignment::binary_op() const {
133 switch (op_) { 135 switch (op_) {
134 case Token::ASSIGN_BIT_OR: return Token::BIT_OR; 136 case Token::ASSIGN_BIT_OR: return Token::BIT_OR;
135 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR; 137 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR;
136 case Token::ASSIGN_BIT_AND: return Token::BIT_AND; 138 case Token::ASSIGN_BIT_AND: return Token::BIT_AND;
137 case Token::ASSIGN_SHL: return Token::SHL; 139 case Token::ASSIGN_SHL: return Token::SHL;
138 case Token::ASSIGN_SAR: return Token::SAR; 140 case Token::ASSIGN_SAR: return Token::SAR;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1132 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1131 str = arr; 1133 str = arr;
1132 } else { 1134 } else {
1133 str = DoubleToCString(handle_->Number(), buffer); 1135 str = DoubleToCString(handle_->Number(), buffer);
1134 } 1136 }
1135 return FACTORY->NewStringFromAscii(CStrVector(str)); 1137 return FACTORY->NewStringFromAscii(CStrVector(str));
1136 } 1138 }
1137 1139
1138 1140
1139 } } // namespace v8::internal 1141 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698