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

Side by Side Diff: src/ast.cc

Issue 10796058: Cleaned up AST nodes a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « src/ast.h ('k') | no next file » | 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Token::Value op, 118 Token::Value op,
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 compound_load_id_(kNoNumber), 128 compound_load_id_(GetNextId(isolate)),
129 assignment_id_(GetNextId(isolate)), 129 assignment_id_(GetNextId(isolate)),
130 block_start_(false), 130 block_start_(false),
131 block_end_(false), 131 block_end_(false),
132 is_monomorphic_(false) { } 132 is_monomorphic_(false) { }
133 133
134 134
135 Token::Value Assignment::binary_op() const { 135 Token::Value Assignment::binary_op() const {
136 switch (op_) { 136 switch (op_) {
137 case Token::ASSIGN_BIT_OR: return Token::BIT_OR; 137 case Token::ASSIGN_BIT_OR: return Token::BIT_OR;
138 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR; 138 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1131 str = arr; 1131 str = arr;
1132 } else { 1132 } else {
1133 str = DoubleToCString(handle_->Number(), buffer); 1133 str = DoubleToCString(handle_->Number(), buffer);
1134 } 1134 }
1135 return FACTORY->NewStringFromAscii(CStrVector(str)); 1135 return FACTORY->NewStringFromAscii(CStrVector(str));
1136 } 1136 }
1137 1137
1138 1138
1139 } } // namespace v8::internal 1139 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698