| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 masm->positions_recorder()->RecordStatementPosition(pos); | 198 masm->positions_recorder()->RecordStatementPosition(pos); |
| 199 masm->positions_recorder()->RecordPosition(pos); | 199 masm->positions_recorder()->RecordPosition(pos); |
| 200 if (right_here) { | 200 if (right_here) { |
| 201 return masm->positions_recorder()->WriteRecordedPositions(); | 201 return masm->positions_recorder()->WriteRecordedPositions(); |
| 202 } | 202 } |
| 203 } | 203 } |
| 204 return false; | 204 return false; |
| 205 } | 205 } |
| 206 | 206 |
| 207 | 207 |
| 208 const char* GenericUnaryOpStub::GetName() { | |
| 209 switch (op_) { | |
| 210 case Token::SUB: | |
| 211 if (negative_zero_ == kStrictNegativeZero) { | |
| 212 return overwrite_ == UNARY_OVERWRITE | |
| 213 ? "GenericUnaryOpStub_SUB_Overwrite_Strict0" | |
| 214 : "GenericUnaryOpStub_SUB_Alloc_Strict0"; | |
| 215 } else { | |
| 216 return overwrite_ == UNARY_OVERWRITE | |
| 217 ? "GenericUnaryOpStub_SUB_Overwrite_Ignore0" | |
| 218 : "GenericUnaryOpStub_SUB_Alloc_Ignore0"; | |
| 219 } | |
| 220 case Token::BIT_NOT: | |
| 221 return overwrite_ == UNARY_OVERWRITE | |
| 222 ? "GenericUnaryOpStub_BIT_NOT_Overwrite" | |
| 223 : "GenericUnaryOpStub_BIT_NOT_Alloc"; | |
| 224 default: | |
| 225 UNREACHABLE(); | |
| 226 return "<unknown>"; | |
| 227 } | |
| 228 } | |
| 229 | |
| 230 | |
| 231 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 208 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 232 switch (type_) { | 209 switch (type_) { |
| 233 case READ_ELEMENT: | 210 case READ_ELEMENT: |
| 234 GenerateReadElement(masm); | 211 GenerateReadElement(masm); |
| 235 break; | 212 break; |
| 236 case NEW_NON_STRICT: | 213 case NEW_NON_STRICT: |
| 237 case NEW_STRICT: | 214 case NEW_STRICT: |
| 238 GenerateNewObject(masm); | 215 GenerateNewObject(masm); |
| 239 break; | 216 break; |
| 240 } | 217 } |
| 241 } | 218 } |
| 242 | 219 |
| 243 | 220 |
| 244 int CEntryStub::MinorKey() { | 221 int CEntryStub::MinorKey() { |
| 245 ASSERT(result_size_ == 1 || result_size_ == 2); | 222 ASSERT(result_size_ == 1 || result_size_ == 2); |
| 246 int result = save_doubles_ ? 1 : 0; | 223 int result = save_doubles_ ? 1 : 0; |
| 247 #ifdef _WIN64 | 224 #ifdef _WIN64 |
| 248 return result | ((result_size_ == 1) ? 0 : 2); | 225 return result | ((result_size_ == 1) ? 0 : 2); |
| 249 #else | 226 #else |
| 250 return result; | 227 return result; |
| 251 #endif | 228 #endif |
| 252 } | 229 } |
| 253 | 230 |
| 254 | 231 |
| 255 } } // namespace v8::internal | 232 } } // namespace v8::internal |
| OLD | NEW |