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

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

Issue 6693014: Strict mode renames and formatting cleanup. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 494 }
495 495
496 MacroAssembler* masm() { return masm_; } 496 MacroAssembler* masm() { return masm_; }
497 497
498 class ExpressionContext; 498 class ExpressionContext;
499 const ExpressionContext* context() { return context_; } 499 const ExpressionContext* context() { return context_; }
500 void set_new_context(const ExpressionContext* context) { context_ = context; } 500 void set_new_context(const ExpressionContext* context) { context_ = context; }
501 501
502 Handle<Script> script() { return info_->script(); } 502 Handle<Script> script() { return info_->script(); }
503 bool is_eval() { return info_->is_eval(); } 503 bool is_eval() { return info_->is_eval(); }
504 bool is_strict() { return function()->strict_mode(); } 504 bool is_strict_mode() { return function()->strict_mode(); }
505 StrictModeFlag strict_mode_flag() { 505 StrictModeFlag strict_mode_flag() {
506 return is_strict() ? kStrictMode : kNonStrictMode; 506 return is_strict_mode() ? kStrictMode : kNonStrictMode;
507 } 507 }
508 FunctionLiteral* function() { return info_->function(); } 508 FunctionLiteral* function() { return info_->function(); }
509 Scope* scope() { return info_->scope(); } 509 Scope* scope() { return info_->scope(); }
510 510
511 static Register result_register(); 511 static Register result_register();
512 static Register context_register(); 512 static Register context_register();
513 513
514 // Helper for calling an IC stub. 514 // Helper for calling an IC stub.
515 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); 515 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode);
516 516
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 742
743 friend class NestedStatement; 743 friend class NestedStatement;
744 744
745 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 745 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
746 }; 746 };
747 747
748 748
749 } } // namespace v8::internal 749 } } // namespace v8::internal
750 750
751 #endif // V8_FULL_CODEGEN_H_ 751 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698