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

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

Issue 6286043: Direct call to eval passes strict mode through. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Extra argument to Resolve*Eval* Created 9 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
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 524 }
525 525
526 MacroAssembler* masm() { return masm_; } 526 MacroAssembler* masm() { return masm_; }
527 527
528 class ExpressionContext; 528 class ExpressionContext;
529 const ExpressionContext* context() { return context_; } 529 const ExpressionContext* context() { return context_; }
530 void set_new_context(const ExpressionContext* context) { context_ = context; } 530 void set_new_context(const ExpressionContext* context) { context_ = context; }
531 531
532 Handle<Script> script() { return info_->script(); } 532 Handle<Script> script() { return info_->script(); }
533 bool is_eval() { return info_->is_eval(); } 533 bool is_eval() { return info_->is_eval(); }
534 bool is_strict() { return function()->strict_mode(); }
534 FunctionLiteral* function() { return info_->function(); } 535 FunctionLiteral* function() { return info_->function(); }
535 Scope* scope() { return info_->scope(); } 536 Scope* scope() { return info_->scope(); }
536 537
537 static Register result_register(); 538 static Register result_register();
538 static Register context_register(); 539 static Register context_register();
539 540
540 // Helper for calling an IC stub. 541 // Helper for calling an IC stub.
541 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); 542 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode);
542 543
543 // Calling an IC stub with a patch site. Passing NULL for patch_site 544 // Calling an IC stub with a patch site. Passing NULL for patch_site
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 768
768 friend class NestedStatement; 769 friend class NestedStatement;
769 770
770 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 771 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
771 }; 772 };
772 773
773 774
774 } } // namespace v8::internal 775 } } // namespace v8::internal
775 776
776 #endif // V8_FULL_CODEGEN_H_ 777 #endif // V8_FULL_CODEGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698