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

Side by Side Diff: src/full-codegen.cc

Issue 181543002: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/full-codegen.h ('k') | src/globals.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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 interface->Allocate(scope->module_var()->index()); 805 interface->Allocate(scope->module_var()->index());
806 int index = module_index_++; 806 int index = module_index_++;
807 807
808 Handle<ModuleInfo> description = 808 Handle<ModuleInfo> description =
809 ModuleInfo::Create(isolate(), interface, scope_); 809 ModuleInfo::Create(isolate(), interface, scope_);
810 modules_->set(index, *description); 810 modules_->set(index, *description);
811 } 811 }
812 812
813 813
814 int FullCodeGenerator::DeclareGlobalsFlags() { 814 int FullCodeGenerator::DeclareGlobalsFlags() {
815 ASSERT(DeclareGlobalsLanguageMode::is_valid(language_mode())); 815 ASSERT(DeclareGlobalsStrictMode::is_valid(strict_mode()));
816 return DeclareGlobalsEvalFlag::encode(is_eval()) | 816 return DeclareGlobalsEvalFlag::encode(is_eval()) |
817 DeclareGlobalsNativeFlag::encode(is_native()) | 817 DeclareGlobalsNativeFlag::encode(is_native()) |
818 DeclareGlobalsLanguageMode::encode(language_mode()); 818 DeclareGlobalsStrictMode::encode(strict_mode());
819 } 819 }
820 820
821 821
822 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { 822 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) {
823 CodeGenerator::RecordPositions(masm_, fun->start_position()); 823 CodeGenerator::RecordPositions(masm_, fun->start_position());
824 } 824 }
825 825
826 826
827 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { 827 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) {
828 CodeGenerator::RecordPositions(masm_, fun->end_position() - 1); 828 CodeGenerator::RecordPositions(masm_, fun->end_position() - 1);
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 } 1728 }
1729 return true; 1729 return true;
1730 } 1730 }
1731 #endif // DEBUG 1731 #endif // DEBUG
1732 1732
1733 1733
1734 #undef __ 1734 #undef __
1735 1735
1736 1736
1737 } } // namespace v8::internal 1737 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698