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

Side by Side Diff: src/code-stubs.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/code-stubs.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 DEFINE_CODE_STUB_BASE(PlatformCodeStub, CodeStub); 321 DEFINE_CODE_STUB_BASE(PlatformCodeStub, CodeStub);
322 }; 322 };
323 323
324 324
325 enum StubFunctionMode { NOT_JS_FUNCTION_STUB_MODE, JS_FUNCTION_STUB_MODE }; 325 enum StubFunctionMode { NOT_JS_FUNCTION_STUB_MODE, JS_FUNCTION_STUB_MODE };
326 enum HandlerArgumentsMode { DONT_PASS_ARGUMENTS, PASS_ARGUMENTS }; 326 enum HandlerArgumentsMode { DONT_PASS_ARGUMENTS, PASS_ARGUMENTS };
327 327
328 328
329 class CodeStubInterfaceDescriptor { 329 class CodeStubInterfaceDescriptor {
330 public: 330 public:
331 CodeStubInterfaceDescriptor(); 331 explicit CodeStubInterfaceDescriptor(CodeStub* stub);
332
333 CodeStubInterfaceDescriptor(Isolate* isolate, uint32_t stub_key);
332 334
333 void Initialize(CodeStub::Major major, 335 void Initialize(CodeStub::Major major,
334 CallInterfaceDescriptor call_descriptor, 336 CallInterfaceDescriptor call_descriptor,
335 Address deoptimization_handler = NULL, 337 Address deoptimization_handler = NULL,
336 int hint_stack_parameter_count = -1, 338 int hint_stack_parameter_count = -1,
337 StubFunctionMode function_mode = NOT_JS_FUNCTION_STUB_MODE); 339 StubFunctionMode function_mode = NOT_JS_FUNCTION_STUB_MODE);
338 void Initialize(CodeStub::Major major, 340 void Initialize(CodeStub::Major major,
339 CallInterfaceDescriptor call_descriptor, 341 CallInterfaceDescriptor call_descriptor,
340 Register stack_parameter_count, 342 Register stack_parameter_count,
341 Address deoptimization_handler = NULL, 343 Address deoptimization_handler = NULL,
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 2298
2297 2299
2298 #undef DEFINE_PLATFORM_CODE_STUB 2300 #undef DEFINE_PLATFORM_CODE_STUB
2299 #undef DEFINE_HANDLER_CODE_STUB 2301 #undef DEFINE_HANDLER_CODE_STUB
2300 #undef DEFINE_HYDROGEN_CODE_STUB 2302 #undef DEFINE_HYDROGEN_CODE_STUB
2301 #undef DEFINE_CODE_STUB 2303 #undef DEFINE_CODE_STUB
2302 #undef DEFINE_CODE_STUB_BASE 2304 #undef DEFINE_CODE_STUB_BASE
2303 } } // namespace v8::internal 2305 } } // namespace v8::internal
2304 2306
2305 #endif // V8_CODE_STUBS_H_ 2307 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698