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

Side by Side Diff: src/hydrogen-instructions.h

Issue 878103002: Revert of Continue learning for calls in optimized code when we have no type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@navier
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.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_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 bool has_stack_check_; 2427 bool has_stack_check_;
2428 }; 2428 };
2429 2429
2430 2430
2431 class HCallFunction FINAL : public HBinaryCall { 2431 class HCallFunction FINAL : public HBinaryCall {
2432 public: 2432 public:
2433 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallFunction, HValue*, int); 2433 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallFunction, HValue*, int);
2434 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3( 2434 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(
2435 HCallFunction, HValue*, int, CallFunctionFlags); 2435 HCallFunction, HValue*, int, CallFunctionFlags);
2436 2436
2437 HValue* context() const { return first(); } 2437 HValue* context() { return first(); }
2438 HValue* function() const { return second(); } 2438 HValue* function() { return second(); }
2439 CallFunctionFlags function_flags() const { return function_flags_; } 2439 CallFunctionFlags function_flags() const { return function_flags_; }
2440 2440
2441 FeedbackVectorICSlot slot() const { return slot_; }
2442 Handle<TypeFeedbackVector> feedback_vector() const {
2443 return feedback_vector_;
2444 }
2445 bool HasVectorAndSlot() const { return !feedback_vector_.is_null(); }
2446 void SetVectorAndSlot(Handle<TypeFeedbackVector> vector,
2447 FeedbackVectorICSlot slot) {
2448 feedback_vector_ = vector;
2449 slot_ = slot;
2450 }
2451
2452 DECLARE_CONCRETE_INSTRUCTION(CallFunction) 2441 DECLARE_CONCRETE_INSTRUCTION(CallFunction)
2453 2442
2454 std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
2455
2456 int argument_delta() const OVERRIDE { return -argument_count(); } 2443 int argument_delta() const OVERRIDE { return -argument_count(); }
2457 2444
2458 private: 2445 private:
2459 HCallFunction(HValue* context, HValue* function, int argument_count, 2446 HCallFunction(HValue* context,
2447 HValue* function,
2448 int argument_count,
2460 CallFunctionFlags flags = NO_CALL_FUNCTION_FLAGS) 2449 CallFunctionFlags flags = NO_CALL_FUNCTION_FLAGS)
2461 : HBinaryCall(context, function, argument_count), 2450 : HBinaryCall(context, function, argument_count), function_flags_(flags) {
2462 function_flags_(flags), 2451 }
2463 slot_(FeedbackVectorICSlot::Invalid()) {}
2464 CallFunctionFlags function_flags_; 2452 CallFunctionFlags function_flags_;
2465 Handle<TypeFeedbackVector> feedback_vector_;
2466 FeedbackVectorICSlot slot_;
2467 }; 2453 };
2468 2454
2469 2455
2470 class HCallNew FINAL : public HBinaryCall { 2456 class HCallNew FINAL : public HBinaryCall {
2471 public: 2457 public:
2472 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallNew, HValue*, int); 2458 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallNew, HValue*, int);
2473 2459
2474 HValue* context() { return first(); } 2460 HValue* context() { return first(); }
2475 HValue* constructor() { return second(); } 2461 HValue* constructor() { return second(); }
2476 2462
(...skipping 5512 matching lines...) Expand 10 before | Expand all | Expand 10 after
7989 }; 7975 };
7990 7976
7991 7977
7992 7978
7993 #undef DECLARE_INSTRUCTION 7979 #undef DECLARE_INSTRUCTION
7994 #undef DECLARE_CONCRETE_INSTRUCTION 7980 #undef DECLARE_CONCRETE_INSTRUCTION
7995 7981
7996 } } // namespace v8::internal 7982 } } // namespace v8::internal
7997 7983
7998 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7984 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698