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

Side by Side Diff: src/ast.cc

Issue 6688066: Clean up Isolate usages in ast visitor and hydrogen. (Closed)
Patch Set: Created 9 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
« no previous file with comments | « src/ast.h ('k') | src/full-codegen.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 ASSERT(compare_type_ == NONE); 693 ASSERT(compare_type_ == NONE);
694 } 694 }
695 } 695 }
696 696
697 697
698 // ---------------------------------------------------------------------------- 698 // ----------------------------------------------------------------------------
699 // Implementation of AstVisitor 699 // Implementation of AstVisitor
700 700
701 bool AstVisitor::CheckStackOverflow() { 701 bool AstVisitor::CheckStackOverflow() {
702 if (stack_overflow_) return true; 702 if (stack_overflow_) return true;
703 StackLimitCheck check(Isolate::Current()); 703 StackLimitCheck check(isolate_);
704 if (!check.HasOverflowed()) return false; 704 if (!check.HasOverflowed()) return false;
705 return (stack_overflow_ = true); 705 return (stack_overflow_ = true);
706 } 706 }
707 707
708 708
709 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { 709 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) {
710 for (int i = 0; i < declarations->length(); i++) { 710 for (int i = 0; i < declarations->length(); i++) {
711 Visit(declarations->at(i)); 711 Visit(declarations->at(i));
712 } 712 }
713 } 713 }
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 ZoneList<Statement*>* statements, 1069 ZoneList<Statement*>* statements,
1070 int pos) 1070 int pos)
1071 : label_(label), 1071 : label_(label),
1072 statements_(statements), 1072 statements_(statements),
1073 position_(pos), 1073 position_(pos),
1074 compare_type_(NONE), 1074 compare_type_(NONE),
1075 entry_id_(AstNode::GetNextId()) { 1075 entry_id_(AstNode::GetNextId()) {
1076 } 1076 }
1077 1077
1078 } } // namespace v8::internal 1078 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698