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

Unified Diff: src/a64/simulator-a64.cc

Issue 152823003: A64: Synchronize with r16489. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/a64/macro-assembler-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/simulator-a64.cc
diff --git a/src/a64/simulator-a64.cc b/src/a64/simulator-a64.cc
index d2805ef58edf8a8a9ee0a4d452d04d2a9aeb2e80..ce18febecbc64f9517f664f18b5f3d0dea0ed0cc 100644
--- a/src/a64/simulator-a64.cc
+++ b/src/a64/simulator-a64.cc
@@ -3021,20 +3021,13 @@ typedef double (*SimulatorRuntimeFPIntCall)(double arg1, int32_t arg2);
// This signature supports direct call in to API function native callback
// (refer to InvocationCallback in v8.h).
-typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectApiCall)(int64_t arg0);
-typedef void (*SimulatorRuntimeDirectApiCallNew)(int64_t arg0);
-typedef v8::Handle<v8::Value> (*SimulatorRuntimeProfilingApiCall)(int64_t arg0,
- int64_t arg1);
-typedef void (*SimulatorRuntimeProfilingApiCallNew)(int64_t arg0, int64_t arg1);
+typedef void (*SimulatorRuntimeDirectApiCall)(int64_t arg0);
+typedef void (*SimulatorRuntimeProfilingApiCall)(int64_t arg0, int64_t arg1);
// This signature supports direct call to accessor getter callback.
-typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectGetterCall)(int64_t arg0,
- int64_t arg1);
-typedef void (*SimulatorRuntimeDirectGetterCallNew)(int64_t arg0, int64_t arg1);
-typedef v8::Handle<v8::Value> (*SimulatorRuntimeProfilingGetterCall)(
- int64_t arg0, int64_t arg1, int64_t arg2);
-typedef void (*SimulatorRuntimeProfilingGetterCallNew)(
- int64_t arg0, int64_t arg1, int64_t arg2);
+typedef void (*SimulatorRuntimeDirectGetterCall)(int64_t arg0, int64_t arg1);
+typedef void (*SimulatorRuntimeProfilingGetterCall)(int64_t arg0, int64_t arg1,
+ int64_t arg2);
void Simulator::VisitException(Instruction* instr) {
// Define some colour codes to use for log messages.
@@ -3146,9 +3139,6 @@ void Simulator::VisitException(Instruction* instr) {
}
switch (redirection->type()) {
- // TODO(jbramley): The old-style callbacks (returning a Handle) have
- // been removed. We should remove their handlers from here, too.
-
default:
TraceSim("Type: Unknown.\n");
UNREACHABLE();
@@ -3183,26 +3173,11 @@ void Simulator::VisitException(Instruction* instr) {
}
case ExternalReference::DIRECT_API_CALL: {
- // Handle<Value> f(v8::Arguments&)
+ // void f(v8::Arguments&)
TraceSim("Type: DIRECT_API_CALL\n");
SimulatorRuntimeDirectApiCall target =
reinterpret_cast<SimulatorRuntimeDirectApiCall>(external);
TraceSim("Arguments: 0x%016" PRIx64 "\n", xreg(0));
- v8::Handle<v8::Value> result = target(xreg(0));
- TraceSim("Returned %p\n", reinterpret_cast<void *>(*result));
-#ifdef DEBUG
- CorruptAllCallerSavedCPURegisters();
-#endif
- set_reg(0, *result);
- break;
- }
-
- case ExternalReference::DIRECT_API_CALL_NEW: {
- // void f(v8::Arguments&)
- TraceSim("Type: DIRECT_API_CALL_NEW\n");
- SimulatorRuntimeDirectApiCallNew target =
- reinterpret_cast<SimulatorRuntimeDirectApiCallNew>(external);
- TraceSim("Arguments: 0x%016" PRIx64 "\n", xreg(0));
target(xreg(0));
TraceSim("No return value.");
#ifdef DEBUG
@@ -3272,28 +3247,12 @@ void Simulator::VisitException(Instruction* instr) {
}
case ExternalReference::DIRECT_GETTER_CALL: {
- // Handle<value> f(Local<String> property, AccessorInfo& info)
+ // void f(Local<String> property, AccessorInfo& info)
TraceSim("Type: DIRECT_GETTER_CALL\n");
SimulatorRuntimeDirectGetterCall target =
reinterpret_cast<SimulatorRuntimeDirectGetterCall>(external);
TraceSim("Arguments: 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
xreg(0), xreg(1));
- v8::Handle<v8::Value> result = target(xreg(0), xreg(1));
- TraceSim("Returned: %p\n", reinterpret_cast<void *>(*result));
-#ifdef DEBUG
- CorruptAllCallerSavedCPURegisters();
-#endif
- set_reg(0, *result);
- break;
- }
-
- case ExternalReference::DIRECT_GETTER_CALL_NEW: {
- // void f(Local<String> property, AccessorInfo& info)
- TraceSim("Type: DIRECT_GETTER_CALL_NEW\n");
- SimulatorRuntimeDirectGetterCallNew target =
- reinterpret_cast<SimulatorRuntimeDirectGetterCallNew>(external);
- TraceSim("Arguments: 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
- xreg(0), xreg(1));
target(xreg(0), xreg(1));
TraceSim("No return value.");
#ifdef DEBUG
@@ -3303,28 +3262,12 @@ void Simulator::VisitException(Instruction* instr) {
}
case ExternalReference::PROFILING_API_CALL: {
+ // void f(v8::Arguments&, v8::FunctionCallback)
TraceSim("Type: PROFILING_API_CALL\n");
- // Handle<Value> f(v8::Arguments&, v8::InvocationCallback)
SimulatorRuntimeProfilingApiCall target =
reinterpret_cast<SimulatorRuntimeProfilingApiCall>(external);
TraceSim("Arguments: 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
xreg(0), xreg(1));
- v8::Handle<v8::Value> result = target(xreg(0), xreg(1));
- TraceSim("Returned: %p\n", reinterpret_cast<void *>(*result));
-#ifdef DEBUG
- CorruptAllCallerSavedCPURegisters();
-#endif
- set_reg(0, *result);
- break;
- }
-
- case ExternalReference::PROFILING_API_CALL_NEW: {
- // void f(v8::Arguments&, v8::FunctionCallback)
- TraceSim("Type: PROFILING_API_CALL_NEW\n");
- SimulatorRuntimeProfilingApiCallNew target =
- reinterpret_cast<SimulatorRuntimeProfilingApiCallNew>(external);
- TraceSim("Arguments: 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
- xreg(0), xreg(1));
target(xreg(0), xreg(1));
TraceSim("No return value.");
#ifdef DEBUG
@@ -3334,29 +3277,11 @@ void Simulator::VisitException(Instruction* instr) {
}
case ExternalReference::PROFILING_GETTER_CALL: {
- // Handle<value> f(Local<String> property, AccessorInfo& info,
- // AccessorGetter getter)
- TraceSim("Type: PROFILING_GETTER_CALL\n");
- SimulatorRuntimeProfilingGetterCall target =
- reinterpret_cast<SimulatorRuntimeProfilingGetterCall>(external);
- TraceSim("Arguments: "
- "0x%016" PRIx64 ", 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
- xreg(0), xreg(1), xreg(2));
- v8::Handle<v8::Value> result = target(xreg(0), xreg(1), xreg(2));
- TraceSim("Returned: %p\n", reinterpret_cast<void *>(*result));
-#ifdef DEBUG
- CorruptAllCallerSavedCPURegisters();
-#endif
- set_reg(0, *result);
- break;
- }
-
- case ExternalReference::PROFILING_GETTER_CALL_NEW: {
// void f(Local<String> property, AccessorInfo& info,
// AccessorGetterCallback callback)
- TraceSim("Type: PROFILING_GETTER_CALL_NEW\n");
- SimulatorRuntimeProfilingGetterCallNew target =
- reinterpret_cast<SimulatorRuntimeProfilingGetterCallNew>(
+ TraceSim("Type: PROFILING_GETTER_CALL\n");
+ SimulatorRuntimeProfilingGetterCall target =
+ reinterpret_cast<SimulatorRuntimeProfilingGetterCall>(
external);
TraceSim("Arguments: "
"0x%016" PRIx64 ", 0x%016" PRIx64 ", 0x%016" PRIx64 "\n",
« no previous file with comments | « src/a64/macro-assembler-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698