| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 } else if (oracle->LoadIsBuiltin(this, Builtins::kLoadIC_StringLength)) { | 416 } else if (oracle->LoadIsBuiltin(this, Builtins::kLoadIC_StringLength)) { |
| 417 is_string_length_ = true; | 417 is_string_length_ = true; |
| 418 } else if (oracle->LoadIsBuiltin(this, | 418 } else if (oracle->LoadIsBuiltin(this, |
| 419 Builtins::kLoadIC_FunctionPrototype)) { | 419 Builtins::kLoadIC_FunctionPrototype)) { |
| 420 is_function_prototype_ = true; | 420 is_function_prototype_ = true; |
| 421 } else { | 421 } else { |
| 422 Literal* lit_key = key()->AsLiteral(); | 422 Literal* lit_key = key()->AsLiteral(); |
| 423 ASSERT(lit_key != NULL && lit_key->handle()->IsString()); | 423 ASSERT(lit_key != NULL && lit_key->handle()->IsString()); |
| 424 Handle<String> name = Handle<String>::cast(lit_key->handle()); | 424 Handle<String> name = Handle<String>::cast(lit_key->handle()); |
| 425 oracle->LoadReceiverTypes(this, name, &receiver_types_); | 425 oracle->LoadReceiverTypes(this, name, &receiver_types_); |
| 426 if (oracle->LoadForeignCallbackType(this) == |
| 427 Code::ExtraICStateForeignCallbackArrayLength) { |
| 428 is_array_length_ = true; |
| 429 } |
| 426 } | 430 } |
| 427 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) { | 431 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) { |
| 428 is_string_access_ = true; | 432 is_string_access_ = true; |
| 429 } else if (is_monomorphic_) { | 433 } else if (is_monomorphic_) { |
| 430 receiver_types_.Add(oracle->LoadMonomorphicReceiverType(this), | 434 receiver_types_.Add(oracle->LoadMonomorphicReceiverType(this), |
| 431 zone); | 435 zone); |
| 432 } else if (oracle->LoadIsMegamorphicWithTypeInfo(this)) { | 436 } else if (oracle->LoadIsMegamorphicWithTypeInfo(this)) { |
| 433 receiver_types_.Reserve(kMaxKeyedPolymorphism, zone); | 437 receiver_types_.Reserve(kMaxKeyedPolymorphism, zone); |
| 434 oracle->CollectKeyedReceiverTypes(PropertyFeedbackId(), &receiver_types_); | 438 oracle->CollectKeyedReceiverTypes(PropertyFeedbackId(), &receiver_types_); |
| 435 } | 439 } |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1134 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
| 1131 str = arr; | 1135 str = arr; |
| 1132 } else { | 1136 } else { |
| 1133 str = DoubleToCString(handle_->Number(), buffer); | 1137 str = DoubleToCString(handle_->Number(), buffer); |
| 1134 } | 1138 } |
| 1135 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1139 return FACTORY->NewStringFromAscii(CStrVector(str)); |
| 1136 } | 1140 } |
| 1137 | 1141 |
| 1138 | 1142 |
| 1139 } } // namespace v8::internal | 1143 } } // namespace v8::internal |
| OLD | NEW |