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

Side by Side Diff: src/compiler.h

Issue 131663003: Make the strict-mode calling convention for contextual calls the default one. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix arm port Created 6 years, 11 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.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 flags_ |= IsEval::encode(true); 95 flags_ |= IsEval::encode(true);
96 } 96 }
97 void MarkAsGlobal() { 97 void MarkAsGlobal() {
98 ASSERT(!is_lazy()); 98 ASSERT(!is_lazy());
99 flags_ |= IsGlobal::encode(true); 99 flags_ |= IsGlobal::encode(true);
100 } 100 }
101 void set_parameter_count(int parameter_count) { 101 void set_parameter_count(int parameter_count) {
102 ASSERT(IsStub()); 102 ASSERT(IsStub());
103 parameter_count_ = parameter_count; 103 parameter_count_ = parameter_count;
104 } 104 }
105
106 void set_this_has_uses(bool has_no_uses) {
107 this_has_uses_ = has_no_uses;
108 }
109 bool this_has_uses() {
110 return this_has_uses_;
111 }
105 void SetLanguageMode(LanguageMode language_mode) { 112 void SetLanguageMode(LanguageMode language_mode) {
106 ASSERT(this->language_mode() == CLASSIC_MODE || 113 ASSERT(this->language_mode() == CLASSIC_MODE ||
107 this->language_mode() == language_mode || 114 this->language_mode() == language_mode ||
108 language_mode == EXTENDED_MODE); 115 language_mode == EXTENDED_MODE);
109 flags_ = LanguageModeField::update(flags_, language_mode); 116 flags_ = LanguageModeField::update(flags_, language_mode);
110 } 117 }
111 void MarkAsInLoop() { 118 void MarkAsInLoop() {
112 ASSERT(is_lazy()); 119 ASSERT(is_lazy());
113 flags_ |= IsInLoop::encode(true); 120 flags_ |= IsInLoop::encode(true);
114 } 121 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 441
435 List<OffsetRange>* no_frame_ranges_; 442 List<OffsetRange>* no_frame_ranges_;
436 443
437 // A copy of shared_info()->opt_count() to avoid handle deref 444 // A copy of shared_info()->opt_count() to avoid handle deref
438 // during graph optimization. 445 // during graph optimization.
439 int opt_count_; 446 int opt_count_;
440 447
441 // Number of parameters used for compilation of stubs that require arguments. 448 // Number of parameters used for compilation of stubs that require arguments.
442 int parameter_count_; 449 int parameter_count_;
443 450
451 bool this_has_uses_;
452
444 Handle<Foreign> object_wrapper_; 453 Handle<Foreign> object_wrapper_;
445 454
446 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); 455 DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
447 }; 456 };
448 457
449 458
450 // Exactly like a CompilationInfo, except also creates and enters a 459 // Exactly like a CompilationInfo, except also creates and enters a
451 // Zone on construction and deallocates it on exit. 460 // Zone on construction and deallocates it on exit.
452 class CompilationInfoWithZone: public CompilationInfo { 461 class CompilationInfoWithZone: public CompilationInfo {
453 public: 462 public:
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 unsigned info_zone_start_allocation_size_; 676 unsigned info_zone_start_allocation_size_;
668 ElapsedTimer timer_; 677 ElapsedTimer timer_;
669 678
670 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 679 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
671 }; 680 };
672 681
673 682
674 } } // namespace v8::internal 683 } } // namespace v8::internal
675 684
676 #endif // V8_COMPILER_H_ 685 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698