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

Side by Side Diff: runtime/vm/object.h

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 7103 matching lines...) Expand 10 before | Expand all | Expand 10 after
7114 7114
7115 bool is_global() const { return (raw_ptr()->flags_ & kGlobal); } 7115 bool is_global() const { return (raw_ptr()->flags_ & kGlobal); }
7116 bool is_ignore_case() const { return (raw_ptr()->flags_ & kIgnoreCase); } 7116 bool is_ignore_case() const { return (raw_ptr()->flags_ & kIgnoreCase); }
7117 bool is_multi_line() const { return (raw_ptr()->flags_ & kMultiLine); } 7117 bool is_multi_line() const { return (raw_ptr()->flags_ & kMultiLine); }
7118 7118
7119 RawString* pattern() const { return raw_ptr()->pattern_; } 7119 RawString* pattern() const { return raw_ptr()->pattern_; }
7120 RawSmi* num_bracket_expressions() const { 7120 RawSmi* num_bracket_expressions() const {
7121 return raw_ptr()->num_bracket_expressions_; 7121 return raw_ptr()->num_bracket_expressions_;
7122 } 7122 }
7123 7123
7124 RawFunction* one_byte_function() const {
7125 return raw_ptr()->one_byte_function_;
7126 }
7127 RawFunction* two_byte_function() const {
7128 return raw_ptr()->two_byte_function_;
7129 }
7130
7131 void set_one_byte_function(const Function& function);
7132 void set_two_byte_function(const Function& function);
7133
7124 void set_pattern(const String& pattern) const; 7134 void set_pattern(const String& pattern) const;
7125 void set_num_bracket_expressions(intptr_t value) const; 7135 void set_num_bracket_expressions(intptr_t value) const;
7126 void set_is_global() const { raw_ptr()->flags_ |= kGlobal; } 7136 void set_is_global() const { raw_ptr()->flags_ |= kGlobal; }
7127 void set_is_ignore_case() const { raw_ptr()->flags_ |= kIgnoreCase; } 7137 void set_is_ignore_case() const { raw_ptr()->flags_ |= kIgnoreCase; }
7128 void set_is_multi_line() const { raw_ptr()->flags_ |= kMultiLine; } 7138 void set_is_multi_line() const { raw_ptr()->flags_ |= kMultiLine; }
7129 void set_is_simple() const { raw_ptr()->type_ = kSimple; } 7139 void set_is_simple() const { raw_ptr()->type_ = kSimple; }
7130 void set_is_complex() const { raw_ptr()->type_ = kComplex; } 7140 void set_is_complex() const { raw_ptr()->type_ = kComplex; }
7131 7141
7132 void* GetDataStartAddress() const; 7142 void* GetDataStartAddress() const;
7133 static RawJSRegExp* FromDataStartAddress(void* data); 7143 static RawJSRegExp* FromDataStartAddress(void* data);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
7409 7419
7410 7420
7411 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7421 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7412 intptr_t index) { 7422 intptr_t index) {
7413 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7423 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7414 } 7424 }
7415 7425
7416 } // namespace dart 7426 } // namespace dart
7417 7427
7418 #endif // VM_OBJECT_H_ 7428 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698