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

Side by Side Diff: src/compiler/instruction-selector-impl.h

Issue 1323463005: [Interpreter] Add support for JS calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/compiler/instruction-selector.h" 9 #include "src/compiler/instruction-selector.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 size_t input_count() const { return descriptor->InputCount(); } 369 size_t input_count() const { return descriptor->InputCount(); }
370 370
371 size_t frame_state_count() const { return descriptor->FrameStateCount(); } 371 size_t frame_state_count() const { return descriptor->FrameStateCount(); }
372 372
373 size_t frame_state_value_count() const { 373 size_t frame_state_value_count() const {
374 return (frame_state_descriptor == NULL) 374 return (frame_state_descriptor == NULL)
375 ? 0 375 ? 0
376 : (frame_state_descriptor->GetTotalSize() + 376 : (frame_state_descriptor->GetTotalSize() +
377 1); // Include deopt id. 377 1); // Include deopt id.
378 } 378 }
379
380 size_t non_argument_input_count() const {
381 return descriptor->HasVarArgs() ? descriptor->VarArgsInputCount() : 0;
382 }
379 }; 383 };
380 384
381 } // namespace compiler 385 } // namespace compiler
382 } // namespace internal 386 } // namespace internal
383 } // namespace v8 387 } // namespace v8
384 388
385 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 389 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698