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

Side by Side Diff: src/hydrogen.h

Issue 9431030: Support OSR in for-in loops. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Extend OptimizeFunctionOnNextCall with an arguments to force OSR. Created 8 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 | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/optimized-for-in.js » ('J')
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 int push_count() const { return push_count_; } 392 int push_count() const { return push_count_; }
393 393
394 int ast_id() const { return ast_id_; } 394 int ast_id() const { return ast_id_; }
395 void set_ast_id(int id) { ast_id_ = id; } 395 void set_ast_id(int id) { ast_id_ = id; }
396 396
397 int length() const { return values_.length(); } 397 int length() const { return values_.length(); }
398 bool is_special_index(int i) const { 398 bool is_special_index(int i) const {
399 return i >= parameter_count() && i < parameter_count() + specials_count(); 399 return i >= parameter_count() && i < parameter_count() + specials_count();
400 } 400 }
401 401
402 int first_expression_index() const {
403 return parameter_count() + specials_count() + local_count();
404 }
405
402 void Bind(Variable* variable, HValue* value) { 406 void Bind(Variable* variable, HValue* value) {
403 Bind(IndexFor(variable), value); 407 Bind(IndexFor(variable), value);
404 } 408 }
405 409
406 void Bind(int index, HValue* value); 410 void Bind(int index, HValue* value);
407 411
408 void BindContext(HValue* value) { 412 void BindContext(HValue* value) {
409 Bind(parameter_count(), value); 413 Bind(parameter_count(), value);
410 } 414 }
411 415
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 const char* filename_; 1313 const char* filename_;
1310 HeapStringAllocator string_allocator_; 1314 HeapStringAllocator string_allocator_;
1311 StringStream trace_; 1315 StringStream trace_;
1312 int indent_; 1316 int indent_;
1313 }; 1317 };
1314 1318
1315 1319
1316 } } // namespace v8::internal 1320 } } // namespace v8::internal
1317 1321
1318 #endif // V8_HYDROGEN_H_ 1322 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/optimized-for-in.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698