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

Side by Side Diff: src/ast.cc

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 118
119 119
120 Assignment::Assignment(Token::Value op, 120 Assignment::Assignment(Token::Value op,
121 Expression* target, 121 Expression* target,
122 Expression* value, 122 Expression* value,
123 int pos) 123 int pos)
124 : op_(op), 124 : op_(op),
125 target_(target), 125 target_(target),
126 value_(value), 126 value_(value),
127 pos_(pos), 127 pos_(pos),
128 compound_bailout_id_(kNoNumber), 128 compound_bailout_id_(kNoAstId),
129 block_start_(false), 129 block_start_(false),
130 block_end_(false), 130 block_end_(false),
131 is_monomorphic_(false), 131 is_monomorphic_(false),
132 receiver_types_(NULL) { 132 receiver_types_(NULL) {
133 ASSERT(Token::IsAssignmentOp(op)); 133 ASSERT(Token::IsAssignmentOp(op));
134 binary_operation_ = is_compound() 134 binary_operation_ = is_compound()
135 ? new BinaryOperation(binary_op(), target, value, pos + 1) 135 ? new BinaryOperation(binary_op(), target, value, pos + 1)
136 : NULL; 136 : NULL;
137 if (is_compound()) { 137 if (is_compound()) {
138 compound_bailout_id_ = GetNextId(); 138 compound_bailout_id_ = GetNextId();
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 1034
1035 CaseClause::CaseClause(Expression* label, 1035 CaseClause::CaseClause(Expression* label,
1036 ZoneList<Statement*>* statements, 1036 ZoneList<Statement*>* statements,
1037 int pos) 1037 int pos)
1038 : label_(label), 1038 : label_(label),
1039 statements_(statements), 1039 statements_(statements),
1040 position_(pos), 1040 position_(pos),
1041 compare_type_(NONE) {} 1041 compare_type_(NONE) {}
1042 1042
1043 } } // namespace v8::internal 1043 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698