| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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/regexp_assembler_ir.h" | 5 #include "vm/regexp_assembler_ir.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 | 379 |
| 380 DEFINE_RAW_LEAF_RUNTIME_ENTRY( | 380 DEFINE_RAW_LEAF_RUNTIME_ENTRY( |
| 381 CaseInsensitiveCompareUC16, 4, false /* is_float */, | 381 CaseInsensitiveCompareUC16, 4, false /* is_float */, |
| 382 reinterpret_cast<RuntimeFunction>(&CaseInsensitiveCompareUC16)); | 382 reinterpret_cast<RuntimeFunction>(&CaseInsensitiveCompareUC16)); |
| 383 | 383 |
| 384 | 384 |
| 385 LocalVariable* IRRegExpMacroAssembler::Parameter(const String& name, | 385 LocalVariable* IRRegExpMacroAssembler::Parameter(const String& name, |
| 386 intptr_t index) const { | 386 intptr_t index) const { |
| 387 LocalVariable* local = new(Z) LocalVariable( | 387 LocalVariable* local = new(Z) LocalVariable( |
| 388 TokenPosition::kNoSource, name, Object::dynamic_type()); | 388 TokenPosition::kNoSource, |
| 389 TokenPosition::kNoSource, |
| 390 name, |
| 391 Object::dynamic_type()); |
| 389 | 392 |
| 390 intptr_t param_frame_index = kParamEndSlotFromFp + kParamCount - index; | 393 intptr_t param_frame_index = kParamEndSlotFromFp + kParamCount - index; |
| 391 local->set_index(param_frame_index); | 394 local->set_index(param_frame_index); |
| 392 | 395 |
| 393 return local; | 396 return local; |
| 394 } | 397 } |
| 395 | 398 |
| 396 | 399 |
| 397 LocalVariable* IRRegExpMacroAssembler::Local(const String& name) { | 400 LocalVariable* IRRegExpMacroAssembler::Local(const String& name) { |
| 398 LocalVariable* local = new(Z) LocalVariable( | 401 LocalVariable* local = new(Z) LocalVariable( |
| 399 TokenPosition::kNoSource, name, Object::dynamic_type()); | 402 TokenPosition::kNoSource, |
| 403 TokenPosition::kNoSource, |
| 404 name, |
| 405 Object::dynamic_type()); |
| 400 local->set_index(GetNextLocalIndex()); | 406 local->set_index(GetNextLocalIndex()); |
| 401 | 407 |
| 402 return local; | 408 return local; |
| 403 } | 409 } |
| 404 | 410 |
| 405 | 411 |
| 406 ConstantInstr* IRRegExpMacroAssembler::Int64Constant(int64_t value) const { | 412 ConstantInstr* IRRegExpMacroAssembler::Int64Constant(int64_t value) const { |
| 407 return new(Z) ConstantInstr( | 413 return new(Z) ConstantInstr( |
| 408 Integer::ZoneHandle(Z, Integer::New(value, Heap::kOld))); | 414 Integer::ZoneHandle(Z, Integer::New(value, Heap::kOld))); |
| 409 } | 415 } |
| (...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1928 index_val, | 1934 index_val, |
| 1929 characters, | 1935 characters, |
| 1930 specialization_cid_, | 1936 specialization_cid_, |
| 1931 TokenPosition::kNoSource)); | 1937 TokenPosition::kNoSource)); |
| 1932 } | 1938 } |
| 1933 | 1939 |
| 1934 | 1940 |
| 1935 #undef __ | 1941 #undef __ |
| 1936 | 1942 |
| 1937 } // namespace dart | 1943 } // namespace dart |
| OLD | NEW |