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

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

Issue 104663004: Preview of a first step towards unification of hydrogen calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 CodeStubInterfaceDescriptor(); 276 CodeStubInterfaceDescriptor();
277 int register_param_count_; 277 int register_param_count_;
278 278
279 Register stack_parameter_count_; 279 Register stack_parameter_count_;
280 // if hint_stack_parameter_count_ > 0, the code stub can optimize the 280 // if hint_stack_parameter_count_ > 0, the code stub can optimize the
281 // return sequence. Default value is -1, which means it is ignored. 281 // return sequence. Default value is -1, which means it is ignored.
282 int hint_stack_parameter_count_; 282 int hint_stack_parameter_count_;
283 ContinuationType continuation_type_; 283 ContinuationType continuation_type_;
284 StubFunctionMode function_mode_; 284 StubFunctionMode function_mode_;
285 Register* register_params_; 285 Register* register_params_;
286 Representation* param_representations_;
286 287
287 Address deoptimization_handler_; 288 Address deoptimization_handler_;
288 HandlerArgumentsMode handler_arguments_mode_; 289 HandlerArgumentsMode handler_arguments_mode_;
289 290
290 bool initialized() const { return register_param_count_ >= 0; } 291 bool initialized() const { return register_param_count_ >= 0; }
291 292
292 bool HasTailCallContinuation() const { 293 bool HasTailCallContinuation() const {
293 return continuation_type_ == TAIL_CALL_CONTINUATION; 294 return continuation_type_ == TAIL_CALL_CONTINUATION;
294 } 295 }
295 296
(...skipping 11 matching lines...) Expand all
307 308
308 ExternalReference miss_handler() { 309 ExternalReference miss_handler() {
309 ASSERT(has_miss_handler_); 310 ASSERT(has_miss_handler_);
310 return miss_handler_; 311 return miss_handler_;
311 } 312 }
312 313
313 bool has_miss_handler() { 314 bool has_miss_handler() {
314 return has_miss_handler_; 315 return has_miss_handler_;
315 } 316 }
316 317
317 Register GetParameterRegister(int index) { 318 Representation GetParameterRepresentation(int index) const {
319 return param_representations_[index];
320 }
321
322 Register GetParameterRegister(int index) const {
318 return register_params_[index]; 323 return register_params_[index];
319 } 324 }
320 325
321 bool IsParameterCountRegister(int index) { 326 bool IsParameterCountRegister(int index) {
322 return GetParameterRegister(index).is(stack_parameter_count_); 327 return GetParameterRegister(index).is(stack_parameter_count_);
323 } 328 }
324 329
325 int GetHandlerParameterCount() { 330 int GetHandlerParameterCount() {
326 int params = environment_length(); 331 int params = environment_length();
327 if (handler_arguments_mode_ == PASS_ARGUMENTS) { 332 if (handler_arguments_mode_ == PASS_ARGUMENTS) {
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 Isolate* isolate); 2349 Isolate* isolate);
2345 2350
2346 Major MajorKey() { return ProfileEntryHook; } 2351 Major MajorKey() { return ProfileEntryHook; }
2347 int MinorKey() { return 0; } 2352 int MinorKey() { return 0; }
2348 2353
2349 void Generate(MacroAssembler* masm); 2354 void Generate(MacroAssembler* masm);
2350 2355
2351 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2356 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2352 }; 2357 };
2353 2358
2359
2360 class CallDescriptors {
2361 public:
2362 static void InitializeForIsolate(Isolate* isolate);
2363 };
2364
2354 } } // namespace v8::internal 2365 } } // namespace v8::internal
2355 2366
2356 #endif // V8_CODE_STUBS_H_ 2367 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698