Cosmetic change: s/arg_descriptor/args_descriptor/
R=asiva@google.com
Review URL: https://codereview.chromium.org//17141004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24103 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 6eec38d..9b3973c 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -871,12 +871,12 @@
static RawFunction* InlineCacheMissHandler(
const GrowableArray<const Instance*>& args,
const ICData& ic_data,
- const Array& arg_descriptor_array) {
+ const Array& args_descriptor_array) {
const Instance& receiver = *args[0];
const Code& target_code =
Code::Handle(ResolveCompileInstanceCallTarget(receiver,
ic_data,
- arg_descriptor_array));
+ args_descriptor_array));
if (target_code.IsNull()) {
// Let the megamorphic stub handle special cases: NoSuchMethod,
// closure calls.
diff --git a/runtime/vm/code_patcher_arm_test.cc b/runtime/vm/code_patcher_arm_test.cc
index 6fbd1a3..0f1e513 100644
--- a/runtime/vm/code_patcher_arm_test.cc
+++ b/runtime/vm/code_patcher_arm_test.cc
@@ -58,10 +58,10 @@
const String& target_name = String::Handle(String::New("targetFunction"));
const ICData& ic_data =
ICData::ZoneHandle(ICData::New(function, target_name, 15, 1));
- const Array& arg_descriptor =
+ const Array& args_descriptor =
Array::ZoneHandle(ArgumentsDescriptor::New(1, Array::Handle()));
- __ LoadObject(R4, arg_descriptor);
+ __ LoadObject(R4, args_descriptor);
__ LoadObject(R5, ic_data);
ExternalLabel target_label(
"InlineCache", StubCode::OneArgCheckInlineCacheEntryPoint());
diff --git a/runtime/vm/code_patcher_ia32_test.cc b/runtime/vm/code_patcher_ia32_test.cc
index 2bb6601..87cb8f6 100644
--- a/runtime/vm/code_patcher_ia32_test.cc
+++ b/runtime/vm/code_patcher_ia32_test.cc
@@ -58,11 +58,11 @@
const String& target_name = String::Handle(String::New("targetFunction"));
const ICData& ic_data =
ICData::ZoneHandle(ICData::New(function, target_name, 15, 1));
- const Array& arg_descriptor =
+ const Array& args_descriptor =
Array::ZoneHandle(ArgumentsDescriptor::New(1, Array::Handle()));
__ LoadObject(ECX, ic_data);
- __ LoadObject(EDX, arg_descriptor);
+ __ LoadObject(EDX, args_descriptor);
ExternalLabel target_label(
"InlineCache", StubCode::OneArgCheckInlineCacheEntryPoint());
__ call(&target_label);
diff --git a/runtime/vm/code_patcher_mips_test.cc b/runtime/vm/code_patcher_mips_test.cc
index 9d0a681..1194289 100644
--- a/runtime/vm/code_patcher_mips_test.cc
+++ b/runtime/vm/code_patcher_mips_test.cc
@@ -58,10 +58,10 @@
const String& target_name = String::Handle(String::New("targetFunction"));
const ICData& ic_data =
ICData::ZoneHandle(ICData::New(function, target_name, 15, 1));
- const Array& arg_descriptor =
+ const Array& args_descriptor =
Array::ZoneHandle(ArgumentsDescriptor::New(1, Array::Handle()));
- __ LoadObject(S4, arg_descriptor);
+ __ LoadObject(S4, args_descriptor);
__ LoadObject(S5, ic_data);
ExternalLabel target_label(
"InlineCache", StubCode::OneArgCheckInlineCacheEntryPoint());
diff --git a/runtime/vm/code_patcher_x64_test.cc b/runtime/vm/code_patcher_x64_test.cc
index 61807b3..1da28a5 100644
--- a/runtime/vm/code_patcher_x64_test.cc
+++ b/runtime/vm/code_patcher_x64_test.cc
@@ -58,11 +58,11 @@
const String& target_name = String::Handle(String::New("targetFunction"));
const ICData& ic_data =
ICData::ZoneHandle(ICData::New(function, target_name, 15, 1));
- const Array& arg_descriptor =
+ const Array& args_descriptor =
Array::ZoneHandle(ArgumentsDescriptor::New(1, Array::Handle()));
__ LoadObject(RBX, ic_data);
- __ LoadObject(R10, arg_descriptor);
+ __ LoadObject(R10, args_descriptor);
ExternalLabel target_label(
"InlineCache", StubCode::OneArgCheckInlineCacheEntryPoint());
__ call(&target_label);
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 8b82f4c..f8d48be 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -1568,9 +1568,9 @@
const Code& code =
Code::Handle(Function::Handle(bpt->function_).unoptimized_code());
CodePatcher::GetInstanceCallAt(bpt->pc_, code, &ic_data, &descriptor);
- ArgumentsDescriptor arg_descriptor(descriptor);
+ ArgumentsDescriptor args_descriptor(descriptor);
ActivationFrame* top_frame = stack_trace->ActivationFrameAt(0);
- intptr_t num_args = arg_descriptor.Count();
+ intptr_t num_args = args_descriptor.Count();
Instance& receiver =
Instance::Handle(top_frame->GetInstanceCallReceiver(num_args));
Code& target_code =
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 0aec272..bef395e 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -8272,13 +8272,13 @@
ASSERT(arg->IsLiteralNode());
arg_values.SetAt((i + kNumExtraArgs), arg->AsLiteralNode()->literal());
}
- const Array& arg_descriptor =
+ const Array& args_descriptor =
Array::Handle(ArgumentsDescriptor::New(num_arguments,
arguments->names()));
const Object& result =
Object::Handle(DartEntry::InvokeFunction(constructor,
arg_values,
- arg_descriptor));
+ args_descriptor));
if (result.IsError()) {
// An exception may not occur in every parse attempt, i.e., the
// generated AST is not deterministic. Therefore mark the function as