| OLD | NEW |
| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 } else if (oracle->LoadIsBuiltin(this, | 533 } else if (oracle->LoadIsBuiltin(this, |
| 534 Builtins::LoadIC_FunctionPrototype)) { | 534 Builtins::LoadIC_FunctionPrototype)) { |
| 535 is_function_prototype_ = true; | 535 is_function_prototype_ = true; |
| 536 } else { | 536 } else { |
| 537 Literal* lit_key = key()->AsLiteral(); | 537 Literal* lit_key = key()->AsLiteral(); |
| 538 ASSERT(lit_key != NULL && lit_key->handle()->IsString()); | 538 ASSERT(lit_key != NULL && lit_key->handle()->IsString()); |
| 539 Handle<String> name = Handle<String>::cast(lit_key->handle()); | 539 Handle<String> name = Handle<String>::cast(lit_key->handle()); |
| 540 ZoneMapList* types = oracle->LoadReceiverTypes(this, name); | 540 ZoneMapList* types = oracle->LoadReceiverTypes(this, name); |
| 541 receiver_types_ = types; | 541 receiver_types_ = types; |
| 542 } | 542 } |
| 543 } else if (oracle->LoadIsBuiltin(this, Builtins::KeyedLoadIC_String)) { |
| 544 is_string_access_ = true; |
| 543 } else if (is_monomorphic_) { | 545 } else if (is_monomorphic_) { |
| 544 monomorphic_receiver_type_ = oracle->LoadMonomorphicReceiverType(this); | 546 monomorphic_receiver_type_ = oracle->LoadMonomorphicReceiverType(this); |
| 545 if (monomorphic_receiver_type_->has_external_array_elements()) { | 547 if (monomorphic_receiver_type_->has_external_array_elements()) { |
| 546 SetExternalArrayType(oracle->GetKeyedLoadExternalArrayType(this)); | 548 SetExternalArrayType(oracle->GetKeyedLoadExternalArrayType(this)); |
| 547 } | 549 } |
| 548 } | 550 } |
| 549 } | 551 } |
| 550 | 552 |
| 551 | 553 |
| 552 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 554 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 ZoneList<Statement*>* statements, | 1068 ZoneList<Statement*>* statements, |
| 1067 int pos) | 1069 int pos) |
| 1068 : label_(label), | 1070 : label_(label), |
| 1069 statements_(statements), | 1071 statements_(statements), |
| 1070 position_(pos), | 1072 position_(pos), |
| 1071 compare_type_(NONE), | 1073 compare_type_(NONE), |
| 1072 entry_id_(AstNode::GetNextId()) { | 1074 entry_id_(AstNode::GetNextId()) { |
| 1073 } | 1075 } |
| 1074 | 1076 |
| 1075 } } // namespace v8::internal | 1077 } } // namespace v8::internal |
| OLD | NEW |