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

Side by Side Diff: src/deoptimizer.h

Issue 14429003: Refactor ExternalReference::isolate_address() to not rely on Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 8 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/assembler.cc ('k') | src/ia32/code-stubs-ia32.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 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 public: 302 public:
303 EntryGenerator(MacroAssembler* masm, BailoutType type) 303 EntryGenerator(MacroAssembler* masm, BailoutType type)
304 : masm_(masm), type_(type) { } 304 : masm_(masm), type_(type) { }
305 virtual ~EntryGenerator() { } 305 virtual ~EntryGenerator() { }
306 306
307 void Generate(); 307 void Generate();
308 308
309 protected: 309 protected:
310 MacroAssembler* masm() const { return masm_; } 310 MacroAssembler* masm() const { return masm_; }
311 BailoutType type() const { return type_; } 311 BailoutType type() const { return type_; }
312 Isolate* isolate() const { return masm_->isolate(); }
312 313
313 virtual void GeneratePrologue() { } 314 virtual void GeneratePrologue() { }
314 315
315 private: 316 private:
316 MacroAssembler* masm_; 317 MacroAssembler* masm_;
317 Deoptimizer::BailoutType type_; 318 Deoptimizer::BailoutType type_;
318 }; 319 };
319 320
320 class TableEntryGenerator : public EntryGenerator { 321 class TableEntryGenerator : public EntryGenerator {
321 public: 322 public:
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 Object** expression_stack_; 917 Object** expression_stack_;
917 int source_position_; 918 int source_position_;
918 919
919 friend class Deoptimizer; 920 friend class Deoptimizer;
920 }; 921 };
921 #endif 922 #endif
922 923
923 } } // namespace v8::internal 924 } } // namespace v8::internal
924 925
925 #endif // V8_DEOPTIMIZER_H_ 926 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698