OLD | NEW |
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 Loading... |
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_(GetNextId(isolate)), | |
129 assignment_id_(GetNextId(isolate)), | 128 assignment_id_(GetNextId(isolate)), |
130 block_start_(false), | 129 block_start_(false), |
131 block_end_(false), | 130 block_end_(false), |
132 is_monomorphic_(false) { } | 131 is_monomorphic_(false) { } |
133 | 132 |
134 | 133 |
135 Token::Value Assignment::binary_op() const { | 134 Token::Value Assignment::binary_op() const { |
136 switch (op_) { | 135 switch (op_) { |
137 case Token::ASSIGN_BIT_OR: return Token::BIT_OR; | 136 case Token::ASSIGN_BIT_OR: return Token::BIT_OR; |
138 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR; | 137 case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR; |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1132 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
1134 str = arr; | 1133 str = arr; |
1135 } else { | 1134 } else { |
1136 str = DoubleToCString(handle_->Number(), buffer); | 1135 str = DoubleToCString(handle_->Number(), buffer); |
1137 } | 1136 } |
1138 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1137 return FACTORY->NewStringFromAscii(CStrVector(str)); |
1139 } | 1138 } |
1140 | 1139 |
1141 | 1140 |
1142 } } // namespace v8::internal | 1141 } } // namespace v8::internal |
OLD | NEW |