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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 716163003: Use one offsets table per generated irregexp matching function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comments Created 6 years, 1 month 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 | « runtime/vm/intermediate_language.h ('k') | runtime/vm/regexp.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_allocator.h" 10 #include "vm/flow_graph_allocator.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 447
448 GraphEntryInstr::GraphEntryInstr(const ParsedFunction* parsed_function, 448 GraphEntryInstr::GraphEntryInstr(const ParsedFunction* parsed_function,
449 TargetEntryInstr* normal_entry, 449 TargetEntryInstr* normal_entry,
450 intptr_t osr_id) 450 intptr_t osr_id)
451 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), 451 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex),
452 parsed_function_(parsed_function), 452 parsed_function_(parsed_function),
453 normal_entry_(normal_entry), 453 normal_entry_(normal_entry),
454 catch_entries_(), 454 catch_entries_(),
455 indirect_entries_(), 455 indirect_entries_(),
456 indirect_entry_offsets_(NULL),
456 initial_definitions_(), 457 initial_definitions_(),
457 osr_id_(osr_id), 458 osr_id_(osr_id),
458 entry_count_(0), 459 entry_count_(0),
459 spill_slot_count_(0), 460 spill_slot_count_(0),
460 fixed_slot_count_(0) { 461 fixed_slot_count_(0) {
461 } 462 }
462 463
463 464
464 ConstantInstr* GraphEntryInstr::constant_null() { 465 ConstantInstr* GraphEntryInstr::constant_null() {
465 ASSERT(initial_definitions_.length() > 0); 466 ASSERT(initial_definitions_.length() > 0);
(...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after
3378 case Token::kTRUNCDIV: return 0; 3379 case Token::kTRUNCDIV: return 0;
3379 case Token::kMOD: return 1; 3380 case Token::kMOD: return 1;
3380 default: UNIMPLEMENTED(); return -1; 3381 default: UNIMPLEMENTED(); return -1;
3381 } 3382 }
3382 } 3383 }
3383 3384
3384 3385
3385 #undef __ 3386 #undef __
3386 3387
3387 } // namespace dart 3388 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/regexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698