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

Side by Side Diff: src/ast.cc

Issue 11498006: Revert 13157, 13145 and 13140: Crankshaft code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/builtins.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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 609 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
610 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) 610 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this)
611 ? oracle->GetObjectLiteralStoreMap(this) 611 ? oracle->GetObjectLiteralStoreMap(this)
612 : Handle<Map>::null(); 612 : Handle<Map>::null();
613 } 613 }
614 614
615 615
616 // ---------------------------------------------------------------------------- 616 // ----------------------------------------------------------------------------
617 // Implementation of AstVisitor 617 // Implementation of AstVisitor
618 618
619 bool AstVisitor::CheckStackOverflow() {
620 if (stack_overflow_) return true;
621 StackLimitCheck check(isolate_);
622 if (!check.HasOverflowed()) return false;
623 return (stack_overflow_ = true);
624 }
625
626
619 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { 627 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) {
620 for (int i = 0; i < declarations->length(); i++) { 628 for (int i = 0; i < declarations->length(); i++) {
621 Visit(declarations->at(i)); 629 Visit(declarations->at(i));
622 } 630 }
623 } 631 }
624 632
625 633
626 void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) { 634 void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) {
627 for (int i = 0; i < statements->length(); i++) { 635 for (int i = 0; i < statements->length(); i++) {
628 Visit(statements->at(i)); 636 Visit(statements->at(i));
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1118 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1111 str = arr; 1119 str = arr;
1112 } else { 1120 } else {
1113 str = DoubleToCString(handle_->Number(), buffer); 1121 str = DoubleToCString(handle_->Number(), buffer);
1114 } 1122 }
1115 return FACTORY->NewStringFromAscii(CStrVector(str)); 1123 return FACTORY->NewStringFromAscii(CStrVector(str));
1116 } 1124 }
1117 1125
1118 1126
1119 } } // namespace v8::internal 1127 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698