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

Side by Side Diff: src/compiler.h

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 years, 10 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/code-stubs-hydrogen.cc ('k') | src/compiler.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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 enum Status { 417 enum Status {
418 FAILED, BAILED_OUT, SUCCEEDED 418 FAILED, BAILED_OUT, SUCCEEDED
419 }; 419 };
420 420
421 MUST_USE_RESULT Status CreateGraph(); 421 MUST_USE_RESULT Status CreateGraph();
422 MUST_USE_RESULT Status OptimizeGraph(); 422 MUST_USE_RESULT Status OptimizeGraph();
423 MUST_USE_RESULT Status GenerateAndInstallCode(); 423 MUST_USE_RESULT Status GenerateAndInstallCode();
424 424
425 Status last_status() const { return last_status_; } 425 Status last_status() const { return last_status_; }
426 CompilationInfo* info() const { return info_; } 426 CompilationInfo* info() const { return info_; }
427 Isolate* isolate() const { return info()->isolate(); }
427 428
428 MUST_USE_RESULT Status AbortOptimization() { 429 MUST_USE_RESULT Status AbortOptimization() {
429 info_->AbortOptimization(); 430 info_->AbortOptimization();
430 info_->shared_info()->DisableOptimization(info_->bailout_reason()); 431 info_->shared_info()->DisableOptimization(info_->bailout_reason());
431 return SetLastStatus(BAILED_OUT); 432 return SetLastStatus(BAILED_OUT);
432 } 433 }
433 434
434 private: 435 private:
435 CompilationInfo* info_; 436 CompilationInfo* info_;
436 TypeFeedbackOracle* oracle_; 437 TypeFeedbackOracle* oracle_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 531
531 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, 532 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
532 CompilationInfo* info, 533 CompilationInfo* info,
533 Handle<SharedFunctionInfo> shared); 534 Handle<SharedFunctionInfo> shared);
534 }; 535 };
535 536
536 537
537 } } // namespace v8::internal 538 } } // namespace v8::internal
538 539
539 #endif // V8_COMPILER_H_ 540 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698