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

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

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "platform/json.h" 7 #include "platform/json.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 4094 matching lines...) Expand 10 before | Expand all | Expand 10 after
4105 int64_t fixed_param_count = -1; 4105 int64_t fixed_param_count = -1;
4106 int64_t opt_param_count = -1; 4106 int64_t opt_param_count = -1;
4107 EXPECT_VALID(Dart_FunctionIsAbstract(func, &is_abstract)); 4107 EXPECT_VALID(Dart_FunctionIsAbstract(func, &is_abstract));
4108 EXPECT_VALID(Dart_FunctionIsStatic(func, &is_static)); 4108 EXPECT_VALID(Dart_FunctionIsStatic(func, &is_static));
4109 EXPECT_VALID(Dart_FunctionIsGetter(func, &is_getter)); 4109 EXPECT_VALID(Dart_FunctionIsGetter(func, &is_getter));
4110 EXPECT_VALID(Dart_FunctionIsSetter(func, &is_setter)); 4110 EXPECT_VALID(Dart_FunctionIsSetter(func, &is_setter));
4111 EXPECT_VALID(Dart_FunctionIsConstructor(func, &is_constructor)); 4111 EXPECT_VALID(Dart_FunctionIsConstructor(func, &is_constructor));
4112 EXPECT_VALID(Dart_FunctionParameterCounts(func, 4112 EXPECT_VALID(Dart_FunctionParameterCounts(func,
4113 &fixed_param_count, &opt_param_count)); 4113 &fixed_param_count, &opt_param_count));
4114 4114
4115 buffer->Printf("%s %lld %lld", 4115 buffer->Printf("%s %"Pd64" %"Pd64"",
4116 name_cstr, 4116 name_cstr,
4117 fixed_param_count, 4117 fixed_param_count,
4118 opt_param_count); 4118 opt_param_count);
4119 if (is_abstract) { 4119 if (is_abstract) {
4120 buffer->Printf(" abstract"); 4120 buffer->Printf(" abstract");
4121 } 4121 }
4122 if (is_static) { 4122 if (is_static) {
4123 buffer->Printf(" static"); 4123 buffer->Printf(" static");
4124 } 4124 }
4125 if (is_getter) { 4125 if (is_getter) {
(...skipping 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after
6492 EXPECT(Dart_IsString(str)); 6492 EXPECT(Dart_IsString(str));
6493 len = -1; 6493 len = -1;
6494 EXPECT_VALID(Dart_StringLength(str, &len)); 6494 EXPECT_VALID(Dart_StringLength(str, &len));
6495 EXPECT_EQ(0, len); 6495 EXPECT_EQ(0, len);
6496 } 6496 }
6497 6497
6498 6498
6499 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 6499 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
6500 6500
6501 } // namespace dart 6501 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698