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

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

Issue 11236050: Add == method name to symbol table (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_ia32.cc » ('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) 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after
3362 } 3362 }
3363 3363
3364 3364
3365 void Function::set_is_inlinable(bool value) const { 3365 void Function::set_is_inlinable(bool value) const {
3366 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); 3366 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_));
3367 } 3367 }
3368 3368
3369 3369
3370 bool Function::IsInlineable() const { 3370 bool Function::IsInlineable() const {
3371 // '==' call is handled specially. 3371 // '==' call is handled specially.
3372 const String& equality_name = String::Handle(Symbols::New("==")); 3372 const String& equality_name = String::Handle(Symbols::EqualOperator());
3373 return InlinableBit::decode(raw_ptr()->kind_tag_) && 3373 return InlinableBit::decode(raw_ptr()->kind_tag_) &&
3374 HasCode() && 3374 HasCode() &&
3375 name() != equality_name.raw(); 3375 name() != equality_name.raw();
3376 } 3376 }
3377 3377
3378 3378
3379 intptr_t Function::NumParameters() const { 3379 intptr_t Function::NumParameters() const {
3380 return num_fixed_parameters() + NumOptionalParameters(); 3380 return num_fixed_parameters() + NumOptionalParameters();
3381 } 3381 }
3382 3382
(...skipping 8833 matching lines...) Expand 10 before | Expand all | Expand 10 after
12216 } 12216 }
12217 return result.raw(); 12217 return result.raw();
12218 } 12218 }
12219 12219
12220 12220
12221 const char* WeakProperty::ToCString() const { 12221 const char* WeakProperty::ToCString() const {
12222 return "_WeakProperty"; 12222 return "_WeakProperty";
12223 } 12223 }
12224 12224
12225 } // namespace dart 12225 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698