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

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

Issue 277913002: Presubmit checks recover. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebasing Created 6 years, 7 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/elements.cc ('k') | src/hydrogen-instructions.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "allocation.h" 10 #include "allocation.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 NestedBlock(FullCodeGenerator* codegen, Block* block) 209 NestedBlock(FullCodeGenerator* codegen, Block* block)
210 : Breakable(codegen, block) { 210 : Breakable(codegen, block) {
211 } 211 }
212 virtual ~NestedBlock() {} 212 virtual ~NestedBlock() {}
213 213
214 virtual NestedStatement* Exit(int* stack_depth, int* context_length) { 214 virtual NestedStatement* Exit(int* stack_depth, int* context_length) {
215 if (statement()->AsBlock()->scope() != NULL) { 215 if (statement()->AsBlock()->scope() != NULL) {
216 ++(*context_length); 216 ++(*context_length);
217 } 217 }
218 return previous_; 218 return previous_;
219 }; 219 }
220 }; 220 };
221 221
222 // The try block of a try/catch statement. 222 // The try block of a try/catch statement.
223 class TryCatch : public NestedStatement { 223 class TryCatch : public NestedStatement {
224 public: 224 public:
225 explicit TryCatch(FullCodeGenerator* codegen) : NestedStatement(codegen) { 225 explicit TryCatch(FullCodeGenerator* codegen) : NestedStatement(codegen) {
226 } 226 }
227 virtual ~TryCatch() {} 227 virtual ~TryCatch() {}
228 228
229 virtual NestedStatement* Exit(int* stack_depth, int* context_length); 229 virtual NestedStatement* Exit(int* stack_depth, int* context_length);
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 938
939 Address start_; 939 Address start_;
940 Address instruction_start_; 940 Address instruction_start_;
941 uint32_t length_; 941 uint32_t length_;
942 }; 942 };
943 943
944 944
945 } } // namespace v8::internal 945 } } // namespace v8::internal
946 946
947 #endif // V8_FULL_CODEGEN_H_ 947 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698