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

Side by Side Diff: src/compiler.h

Issue 23493019: remove most Isolate::Current asserts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/debug.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 int to; 53 int to;
54 }; 54 };
55 55
56 // CompilationInfo encapsulates some information known at compile time. It 56 // CompilationInfo encapsulates some information known at compile time. It
57 // is constructed based on the resources available at compile-time. 57 // is constructed based on the resources available at compile-time.
58 class CompilationInfo { 58 class CompilationInfo {
59 public: 59 public:
60 CompilationInfo(Handle<JSFunction> closure, Zone* zone); 60 CompilationInfo(Handle<JSFunction> closure, Zone* zone);
61 virtual ~CompilationInfo(); 61 virtual ~CompilationInfo();
62 62
63 Isolate* isolate() { 63 Isolate* isolate() {
Sven Panne 2013/09/05 09:49:05 While we're here: Can we make this and zone() cons
64 ASSERT(Isolate::Current() == isolate_);
65 return isolate_; 64 return isolate_;
66 } 65 }
67 Zone* zone() { return zone_; } 66 Zone* zone() { return zone_; }
68 bool is_lazy() const { return IsLazy::decode(flags_); } 67 bool is_lazy() const { return IsLazy::decode(flags_); }
69 bool is_eval() const { return IsEval::decode(flags_); } 68 bool is_eval() const { return IsEval::decode(flags_); }
70 bool is_global() const { return IsGlobal::decode(flags_); } 69 bool is_global() const { return IsGlobal::decode(flags_); }
71 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } 70 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; }
72 bool is_extended_mode() const { return language_mode() == EXTENDED_MODE; } 71 bool is_extended_mode() const { return language_mode() == EXTENDED_MODE; }
73 LanguageMode language_mode() const { 72 LanguageMode language_mode() const {
74 return LanguageModeField::decode(flags_); 73 return LanguageModeField::decode(flags_);
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 unsigned info_zone_start_allocation_size_; 660 unsigned info_zone_start_allocation_size_;
662 ElapsedTimer timer_; 661 ElapsedTimer timer_;
663 662
664 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 663 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
665 }; 664 };
666 665
667 666
668 } } // namespace v8::internal 667 } } // namespace v8::internal
669 668
670 #endif // V8_COMPILER_H_ 669 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698