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

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

Issue 1433463002: Allocate some data structures in old instead of in new space. Early inlining bailout for native fun… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Spelling error Created 5 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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flow_graph_inliner.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/dart_entry.h" 5 #include "vm/dart_entry.h"
6 6
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
11 #include "vm/object_store.h" 11 #include "vm/object_store.h"
12 #include "vm/resolver.h" 12 #include "vm/resolver.h"
13 #include "vm/simulator.h" 13 #include "vm/simulator.h"
14 #include "vm/stub_code.h" 14 #include "vm/stub_code.h"
15 #include "vm/symbols.h" 15 #include "vm/symbols.h"
16 16
17 namespace dart { 17 namespace dart {
18 18
19 DECLARE_FLAG(bool, lazy_dispatchers); 19 DECLARE_FLAG(bool, lazy_dispatchers);
20 20
21 // A cache of VM heap allocated arguments descriptors. 21 // A cache of VM heap allocated arguments descriptors.
22 RawArray* ArgumentsDescriptor::cached_args_descriptors_[kCachedDescriptorCount]; 22 RawArray* ArgumentsDescriptor::cached_args_descriptors_[kCachedDescriptorCount];
23 23
24 24
25 RawObject* DartEntry::InvokeFunction(const Function& function, 25 RawObject* DartEntry::InvokeFunction(const Function& function,
26 const Array& arguments) { 26 const Array& arguments) {
27 ASSERT(Thread::Current()->IsMutatorThread());
27 const Array& arguments_descriptor = 28 const Array& arguments_descriptor =
28 Array::Handle(ArgumentsDescriptor::New(arguments.Length())); 29 Array::Handle(ArgumentsDescriptor::New(arguments.Length()));
29 return InvokeFunction(function, arguments, arguments_descriptor); 30 return InvokeFunction(function, arguments, arguments_descriptor);
30 } 31 }
31 32
32 33
33 class ScopedIsolateStackLimits : public ValueObject { 34 class ScopedIsolateStackLimits : public ValueObject {
34 public: 35 public:
35 explicit ScopedIsolateStackLimits(Isolate* isolate) 36 explicit ScopedIsolateStackLimits(Isolate* isolate)
36 : isolate_(isolate), stack_base_(Isolate::GetCurrentStackPointer()) { 37 : isolate_(isolate), stack_base_(Isolate::GetCurrentStackPointer()) {
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 const Array& args = Array::Handle(Array::New(kNumArguments)); 580 const Array& args = Array::Handle(Array::New(kNumArguments));
580 args.SetAt(0, map); 581 args.SetAt(0, map);
581 args.SetAt(1, key); 582 args.SetAt(1, key);
582 args.SetAt(2, value); 583 args.SetAt(2, value);
583 const Object& result = Object::Handle(DartEntry::InvokeFunction(function, 584 const Object& result = Object::Handle(DartEntry::InvokeFunction(function,
584 args)); 585 args));
585 return result.raw(); 586 return result.raw();
586 } 587 }
587 588
588 } // namespace dart 589 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698