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

Side by Side Diff: src/ast.cc

Issue 9692036: Implement non-generic stores for object literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Sven Panne. Created 8 years, 9 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/hydrogen.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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 if (info.IsSmi()) { 595 if (info.IsSmi()) {
596 compare_type_ = SMI_ONLY; 596 compare_type_ = SMI_ONLY;
597 } else if (info.IsNonPrimitive()) { 597 } else if (info.IsNonPrimitive()) {
598 compare_type_ = OBJECT_ONLY; 598 compare_type_ = OBJECT_ONLY;
599 } else { 599 } else {
600 ASSERT(compare_type_ == NONE); 600 ASSERT(compare_type_ == NONE);
601 } 601 }
602 } 602 }
603 603
604 604
605 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
606 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this)
607 ? oracle->GetObjectLiteralStoreMap(this)
608 : Handle<Map>::null();
609 }
610
611
605 // ---------------------------------------------------------------------------- 612 // ----------------------------------------------------------------------------
606 // Implementation of AstVisitor 613 // Implementation of AstVisitor
607 614
608 bool AstVisitor::CheckStackOverflow() { 615 bool AstVisitor::CheckStackOverflow() {
609 if (stack_overflow_) return true; 616 if (stack_overflow_) return true;
610 StackLimitCheck check(isolate_); 617 StackLimitCheck check(isolate_);
611 if (!check.HasOverflowed()) return false; 618 if (!check.HasOverflowed()) return false;
612 return (stack_overflow_ = true); 619 return (stack_overflow_ = true);
613 } 620 }
614 621
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1153 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1147 str = arr; 1154 str = arr;
1148 } else { 1155 } else {
1149 str = DoubleToCString(handle_->Number(), buffer); 1156 str = DoubleToCString(handle_->Number(), buffer);
1150 } 1157 }
1151 return FACTORY->NewStringFromAscii(CStrVector(str)); 1158 return FACTORY->NewStringFromAscii(CStrVector(str));
1152 } 1159 }
1153 1160
1154 1161
1155 } } // namespace v8::internal 1162 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698