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

Side by Side Diff: src/scanner.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 | « src/runtime.cc ('k') | src/spaces.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 Scan(); 409 Scan();
410 } 410 }
411 411
412 412
413 Token::Value Scanner::Next() { 413 Token::Value Scanner::Next() {
414 // BUG 1215673: Find a thread safe way to set a stack limit in 414 // BUG 1215673: Find a thread safe way to set a stack limit in
415 // pre-parse mode. Otherwise, we cannot safely pre-parse from other 415 // pre-parse mode. Otherwise, we cannot safely pre-parse from other
416 // threads. 416 // threads.
417 current_ = next_; 417 current_ = next_;
418 // Check for stack-overflow before returning any tokens. 418 // Check for stack-overflow before returning any tokens.
419 StackLimitCheck check; 419 StackLimitCheck check(Isolate::Current());
420 if (check.HasOverflowed()) { 420 if (check.HasOverflowed()) {
421 stack_overflow_ = true; 421 stack_overflow_ = true;
422 next_.token = Token::ILLEGAL; 422 next_.token = Token::ILLEGAL;
423 } else { 423 } else {
424 has_line_terminator_before_next_ = false; 424 has_line_terminator_before_next_ = false;
425 Scan(); 425 Scan();
426 } 426 }
427 return current_.token; 427 return current_.token;
428 } 428 }
429 429
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 } 1348 }
1349 AddCharAdvance(); 1349 AddCharAdvance();
1350 } 1350 }
1351 literal.Complete(); 1351 literal.Complete();
1352 1352
1353 next_.location.end_pos = source_pos() - 1; 1353 next_.location.end_pos = source_pos() - 1;
1354 return true; 1354 return true;
1355 } 1355 }
1356 1356
1357 } } // namespace v8::internal 1357 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698