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

Side by Side Diff: src/ast.cc

Issue 23890030: Rollback trunk to 3.21.15. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « src/ast.h ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 void Property::RecordTypeFeedback(TypeFeedbackOracle* oracle, 453 void Property::RecordTypeFeedback(TypeFeedbackOracle* oracle,
454 Zone* zone) { 454 Zone* zone) {
455 // Record type feedback from the oracle in the AST. 455 // Record type feedback from the oracle in the AST.
456 is_uninitialized_ = oracle->LoadIsUninitialized(this); 456 is_uninitialized_ = oracle->LoadIsUninitialized(this);
457 if (is_uninitialized_) return; 457 if (is_uninitialized_) return;
458 458
459 is_monomorphic_ = oracle->LoadIsMonomorphicNormal(this); 459 is_monomorphic_ = oracle->LoadIsMonomorphicNormal(this);
460 receiver_types_.Clear(); 460 receiver_types_.Clear();
461 if (key()->IsPropertyName()) { 461 if (key()->IsPropertyName()) {
462 FunctionPrototypeStub proto_stub(Code::LOAD_IC); 462 FunctionPrototypeStub proto_stub(Code::LOAD_IC);
463 if (oracle->LoadIsStub(this, &proto_stub)) { 463 StringLengthStub string_stub(Code::LOAD_IC, false);
464 if (oracle->LoadIsStub(this, &string_stub)) {
465 is_string_length_ = true;
466 } else if (oracle->LoadIsStub(this, &proto_stub)) {
464 is_function_prototype_ = true; 467 is_function_prototype_ = true;
465 } else { 468 } else {
466 Literal* lit_key = key()->AsLiteral(); 469 Literal* lit_key = key()->AsLiteral();
467 ASSERT(lit_key != NULL && lit_key->value()->IsString()); 470 ASSERT(lit_key != NULL && lit_key->value()->IsString());
468 Handle<String> name = Handle<String>::cast(lit_key->value()); 471 Handle<String> name = Handle<String>::cast(lit_key->value());
469 oracle->LoadReceiverTypes(this, name, &receiver_types_); 472 oracle->LoadReceiverTypes(this, name, &receiver_types_);
470 } 473 }
471 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) { 474 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) {
472 is_string_access_ = true; 475 is_string_access_ = true;
473 } else if (is_monomorphic_) { 476 } else if (is_monomorphic_) {
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1190 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1188 str = arr; 1191 str = arr;
1189 } else { 1192 } else {
1190 str = DoubleToCString(value_->Number(), buffer); 1193 str = DoubleToCString(value_->Number(), buffer);
1191 } 1194 }
1192 return isolate_->factory()->NewStringFromAscii(CStrVector(str)); 1195 return isolate_->factory()->NewStringFromAscii(CStrVector(str));
1193 } 1196 }
1194 1197
1195 1198
1196 } } // namespace v8::internal 1199 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698