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

Side by Side Diff: src/ast.cc

Issue 3382007: [Isolates] ScavengeVisitor gets member Heap*. (Closed)
Patch Set: fixed per review comments Created 10 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
« no previous file with comments | « no previous file | src/heap.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 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 pos_ = assignment->position(); 288 pos_ = assignment->position();
289 CopyAnalysisResultsFrom(assignment); 289 CopyAnalysisResultsFrom(assignment);
290 } 290 }
291 291
292 292
293 // ---------------------------------------------------------------------------- 293 // ----------------------------------------------------------------------------
294 // Implementation of AstVisitor 294 // Implementation of AstVisitor
295 295
296 bool AstVisitor::CheckStackOverflow() { 296 bool AstVisitor::CheckStackOverflow() {
297 if (stack_overflow_) return true; 297 if (stack_overflow_) return true;
298 StackLimitCheck check; 298 StackLimitCheck check(Isolate::Current());
299 if (!check.HasOverflowed()) return false; 299 if (!check.HasOverflowed()) return false;
300 return (stack_overflow_ = true); 300 return (stack_overflow_ = true);
301 } 301 }
302 302
303 303
304 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { 304 void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) {
305 for (int i = 0; i < declarations->length(); i++) { 305 for (int i = 0; i < declarations->length(); i++) {
306 Visit(declarations->at(i)); 306 Visit(declarations->at(i));
307 } 307 }
308 } 308 }
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 cond_(NULL), 634 cond_(NULL),
635 may_have_function_literal_(true) { 635 may_have_function_literal_(true) {
636 } 636 }
637 637
638 638
639 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements) 639 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements)
640 : label_(label), statements_(statements) { 640 : label_(label), statements_(statements) {
641 } 641 }
642 642
643 } } // namespace v8::internal 643 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698