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

Side by Side Diff: src/ast.cc

Issue 27183002: Fix initial comparison combined_type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/bootstrapper.cc » ('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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 is_function_prototype_ = true; 434 is_function_prototype_ = true;
435 } else { 435 } else {
436 Literal* lit_key = key()->AsLiteral(); 436 Literal* lit_key = key()->AsLiteral();
437 ASSERT(lit_key != NULL && lit_key->value()->IsString()); 437 ASSERT(lit_key != NULL && lit_key->value()->IsString());
438 Handle<String> name = Handle<String>::cast(lit_key->value()); 438 Handle<String> name = Handle<String>::cast(lit_key->value());
439 oracle->LoadReceiverTypes(this, name, &receiver_types_); 439 oracle->LoadReceiverTypes(this, name, &receiver_types_);
440 } 440 }
441 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) { 441 } else if (oracle->LoadIsBuiltin(this, Builtins::kKeyedLoadIC_String)) {
442 is_string_access_ = true; 442 is_string_access_ = true;
443 } else if (is_monomorphic_) { 443 } else if (is_monomorphic_) {
444 receiver_types_.Add(oracle->LoadMonomorphicReceiverType(this), 444 receiver_types_.Add(oracle->LoadMonomorphicReceiverType(this), zone);
445 zone);
446 } else if (oracle->LoadIsPolymorphic(this)) { 445 } else if (oracle->LoadIsPolymorphic(this)) {
447 receiver_types_.Reserve(kMaxKeyedPolymorphism, zone); 446 receiver_types_.Reserve(kMaxKeyedPolymorphism, zone);
448 oracle->CollectKeyedReceiverTypes(PropertyFeedbackId(), &receiver_types_); 447 oracle->CollectKeyedReceiverTypes(PropertyFeedbackId(), &receiver_types_);
449 } 448 }
450 } 449 }
451 450
452 451
453 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle, 452 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle,
454 Zone* zone) { 453 Zone* zone) {
455 Property* prop = target()->AsProperty(); 454 Property* prop = target()->AsProperty();
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1157 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1159 str = arr; 1158 str = arr;
1160 } else { 1159 } else {
1161 str = DoubleToCString(value_->Number(), buffer); 1160 str = DoubleToCString(value_->Number(), buffer);
1162 } 1161 }
1163 return isolate_->factory()->NewStringFromAscii(CStrVector(str)); 1162 return isolate_->factory()->NewStringFromAscii(CStrVector(str));
1164 } 1163 }
1165 1164
1166 1165
1167 } } // namespace v8::internal 1166 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698