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

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

Issue 678763004: Make CTX allocatable by the register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: incorporated latest 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
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 #ifndef VM_UNIT_TEST_H_ 5 #ifndef VM_UNIT_TEST_H_
6 #define VM_UNIT_TEST_H_ 6 #define VM_UNIT_TEST_H_
7 7
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 342
343 SequenceNode* node_sequence() const { return node_sequence_; } 343 SequenceNode* node_sequence() const { return node_sequence_; }
344 344
345 void set_default_parameter_values(const Array& value) { 345 void set_default_parameter_values(const Array& value) {
346 default_parameter_values_ = value.raw(); 346 default_parameter_values_ = value.raw();
347 } 347 }
348 348
349 // Compile test and set code in function. 349 // Compile test and set code in function.
350 void Compile(); 350 void Compile();
351 351
352 LocalVariable* CreateTempConstVariable(const char* name_part);
353
354 private: 352 private:
355 Function& function_; 353 Function& function_;
356 SequenceNode* node_sequence_; 354 SequenceNode* node_sequence_;
357 Array& default_parameter_values_; 355 Array& default_parameter_values_;
358 356
359 DISALLOW_COPY_AND_ASSIGN(CodeGenTest); 357 DISALLOW_COPY_AND_ASSIGN(CodeGenTest);
360 }; 358 };
361 359
362 360
363 class CompilerTest : public AllStatic { 361 class CompilerTest : public AllStatic {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } \ 405 } \
408 } else { \ 406 } else { \
409 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \ 407 dart::Expect(__FILE__, __LINE__).Fail("expected True, but was '%s'\n", \
410 #handle); \ 408 #handle); \
411 } \ 409 } \
412 } while (0) 410 } while (0)
413 411
414 } // namespace dart 412 } // namespace dart
415 413
416 #endif // VM_UNIT_TEST_H_ 414 #endif // VM_UNIT_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698