OLD | NEW |
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 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 | 2320 |
2321 assembler->Bind(&if_valueisundetectable); | 2321 assembler->Bind(&if_valueisundetectable); |
2322 assembler->Return(assembler->BooleanConstant(false)); | 2322 assembler->Return(assembler->BooleanConstant(false)); |
2323 | 2323 |
2324 assembler->Bind(&if_valueisnotundetectable); | 2324 assembler->Bind(&if_valueisnotundetectable); |
2325 assembler->Return(assembler->BooleanConstant(true)); | 2325 assembler->Return(assembler->BooleanConstant(true)); |
2326 } | 2326 } |
2327 } | 2327 } |
2328 } | 2328 } |
2329 | 2329 |
| 2330 void StoreInterceptorStub::GenerateAssembly( |
| 2331 compiler::CodeStubAssembler* assembler) const { |
| 2332 typedef compiler::Node Node; |
| 2333 Node* receiver = assembler->Parameter(0); |
| 2334 Node* name = assembler->Parameter(1); |
| 2335 Node* value = assembler->Parameter(2); |
| 2336 Node* context = assembler->Parameter(3); |
| 2337 assembler->TailCallRuntime(Runtime::kStorePropertyWithInterceptor, context, |
| 2338 receiver, name, value); |
| 2339 } |
| 2340 |
2330 template<class StateType> | 2341 template<class StateType> |
2331 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { | 2342 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { |
2332 // Note: Although a no-op transition is semantically OK, it is hinting at a | 2343 // Note: Although a no-op transition is semantically OK, it is hinting at a |
2333 // bug somewhere in our state transition machinery. | 2344 // bug somewhere in our state transition machinery. |
2334 DCHECK(from != to); | 2345 DCHECK(from != to); |
2335 if (!FLAG_trace_ic) return; | 2346 if (!FLAG_trace_ic) return; |
2336 OFStream os(stdout); | 2347 OFStream os(stdout); |
2337 os << "["; | 2348 os << "["; |
2338 PrintBaseName(os); | 2349 PrintBaseName(os); |
2339 os << ": " << from << "=>" << to << "]" << std::endl; | 2350 os << ": " << from << "=>" << to << "]" << std::endl; |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2755 if (type->Is(Type::UntaggedPointer())) { | 2766 if (type->Is(Type::UntaggedPointer())) { |
2756 return Representation::External(); | 2767 return Representation::External(); |
2757 } | 2768 } |
2758 | 2769 |
2759 DCHECK(!type->Is(Type::Untagged())); | 2770 DCHECK(!type->Is(Type::Untagged())); |
2760 return Representation::Tagged(); | 2771 return Representation::Tagged(); |
2761 } | 2772 } |
2762 | 2773 |
2763 } // namespace internal | 2774 } // namespace internal |
2764 } // namespace v8 | 2775 } // namespace v8 |
OLD | NEW |