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

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

Issue 26842003: Fix checked mode failure (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | no next file » | 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 "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/thread.h" 9 #include "vm/thread.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 Dart_StackTrace trace; 393 Dart_StackTrace trace;
394 Dart_GetStackTrace(&trace); 394 Dart_GetStackTrace(&trace);
395 SaveStackTrace(trace); 395 SaveStackTrace(trace);
396 } 396 }
397 397
398 398
399 static void InspectStackTest(bool optimize) { 399 static void InspectStackTest(bool optimize) {
400 const char* kScriptChars = 400 const char* kScriptChars =
401 "void breakpointNow() {\n" 401 "void breakpointNow() {\n"
402 "}\n" 402 "}\n"
403 "void helper(int a, int b, bool stop) {\n" 403 "int helper(int a, int b, bool stop) {\n"
404 " if (b == 99 && stop) {\n" 404 " if (b == 99 && stop) {\n"
405 " breakpointNow();\n" 405 " breakpointNow();\n"
406 " }\n" 406 " }\n"
407 " int c = a*b;\n" 407 " int c = a*b;\n"
408 " return c;\n" 408 " return c;\n"
409 "}\n" 409 "}\n"
410 "int anotherMiddleMan(int one, int two, bool stop) {\n" 410 "int anotherMiddleMan(int one, int two, bool stop) {\n"
411 " return helper(one, two, stop);\n" 411 " return helper(one, two, stop);\n"
412 "}\n" 412 "}\n"
413 "int middleMan(int x, int limit, bool stop) {\n" 413 "int middleMan(int x, int limit, bool stop) {\n"
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 1921
1922 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); 1922 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj);
1923 Dart_Handle super_type = Dart_GetSupertype(list_type); 1923 Dart_Handle super_type = Dart_GetSupertype(list_type);
1924 EXPECT(!Dart_IsError(super_type)); 1924 EXPECT(!Dart_IsError(super_type));
1925 super_type = Dart_GetSupertype(super_type); 1925 super_type = Dart_GetSupertype(super_type);
1926 EXPECT(!Dart_IsError(super_type)); 1926 EXPECT(!Dart_IsError(super_type));
1927 EXPECT(super_type == Dart_Null()); 1927 EXPECT(super_type == Dart_Null());
1928 } 1928 }
1929 1929
1930 } // namespace dart 1930 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698