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

Unified Diff: src/code-stubs.cc

Issue 553833002: Initialize CodeStubInterfaceDescriptor in the constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index d831c618b714e739831577d9f3a3fb68df5af78e..a09303cac9c481a60428a5d2e47e9022511c7874 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -16,14 +16,29 @@ namespace v8 {
namespace internal {
-CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
+CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor(CodeStub* stub)
: stack_parameter_count_(no_reg),
hint_stack_parameter_count_(-1),
function_mode_(NOT_JS_FUNCTION_STUB_MODE),
deoptimization_handler_(NULL),
handler_arguments_mode_(DONT_PASS_ARGUMENTS),
miss_handler_(),
- has_miss_handler_(false) {}
+ has_miss_handler_(false) {
+ stub->InitializeInterfaceDescriptor(this);
+}
+
+
+CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor(Isolate* isolate,
+ uint32_t stub_key)
+ : stack_parameter_count_(no_reg),
+ hint_stack_parameter_count_(-1),
+ function_mode_(NOT_JS_FUNCTION_STUB_MODE),
+ deoptimization_handler_(NULL),
+ handler_arguments_mode_(DONT_PASS_ARGUMENTS),
+ miss_handler_(),
+ has_miss_handler_(false) {
+ CodeStub::InitializeInterfaceDescriptor(isolate, stub_key, this);
+}
void CodeStubInterfaceDescriptor::Initialize(
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698