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

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

Issue 7275022: Explicitly pass the closure when allocating a catch or with context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/factory.cc ('k') | src/full-codegen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 unsigned ast_id); 549 unsigned ast_id);
550 550
551 // Set fields in the stack frame. Offsets are the frame pointer relative 551 // Set fields in the stack frame. Offsets are the frame pointer relative
552 // offsets defined in, e.g., StandardFrameConstants. 552 // offsets defined in, e.g., StandardFrameConstants.
553 void StoreToFrameField(int frame_offset, Register value); 553 void StoreToFrameField(int frame_offset, Register value);
554 554
555 // Load a value from the current context. Indices are defined as an enum 555 // Load a value from the current context. Indices are defined as an enum
556 // in v8::internal::Context. 556 // in v8::internal::Context.
557 void LoadContextField(Register dst, int context_index); 557 void LoadContextField(Register dst, int context_index);
558 558
559 // Push the function argument for the runtime functions PushWithContext
560 // and PushCatchContext.
561 void PushFunctionArgumentForContextAllocation();
562
559 // AST node visit functions. 563 // AST node visit functions.
560 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 564 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
561 AST_NODE_LIST(DECLARE_VISIT) 565 AST_NODE_LIST(DECLARE_VISIT)
562 #undef DECLARE_VISIT 566 #undef DECLARE_VISIT
563 567
564 void EmitUnaryOperation(UnaryOperation* expr, const char* comment); 568 void EmitUnaryOperation(UnaryOperation* expr, const char* comment);
565 569
566 void VisitComma(BinaryOperation* expr); 570 void VisitComma(BinaryOperation* expr);
567 void VisitLogicalExpression(BinaryOperation* expr); 571 void VisitLogicalExpression(BinaryOperation* expr);
568 void VisitArithmeticExpression(BinaryOperation* expr); 572 void VisitArithmeticExpression(BinaryOperation* expr);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 769
766 friend class NestedStatement; 770 friend class NestedStatement;
767 771
768 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 772 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
769 }; 773 };
770 774
771 775
772 } } // namespace v8::internal 776 } } // namespace v8::internal
773 777
774 #endif // V8_FULL_CODEGEN_H_ 778 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698