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

Side by Side Diff: test/cctest/interpreter/test-bytecode-generator.cc

Issue 1478303002: Revert of [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « test/cctest/compiler/test-js-context-specialization.cc ('k') | test/cctest/test-heap.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 // TODO(rmcilroy): Remove this define after this flag is turned on globally 5 // TODO(rmcilroy): Remove this define after this flag is turned on globally
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 }; 2695 };
2696 2696
2697 for (size_t i = 0; i < arraysize(snippets); i++) { 2697 for (size_t i = 0; i < arraysize(snippets); i++) {
2698 Handle<BytecodeArray> bytecode_array = 2698 Handle<BytecodeArray> bytecode_array =
2699 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet); 2699 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet);
2700 CheckBytecodeArrayEqual(snippets[i], bytecode_array); 2700 CheckBytecodeArrayEqual(snippets[i], bytecode_array);
2701 } 2701 }
2702 } 2702 }
2703 2703
2704 2704
2705 /* TODO(oth): Regenerate this test.
2706 TEST(GlobalDelete) { 2705 TEST(GlobalDelete) {
2707 InitializedHandleScope handle_scope; 2706 InitializedHandleScope handle_scope;
2708 BytecodeGeneratorHelper helper; 2707 BytecodeGeneratorHelper helper;
2709 Zone zone; 2708 Zone zone;
2710 2709
2711 int context = Register::function_context().index(); 2710 int context = Register::function_context().index();
2712 int global_object_index = Context::GLOBAL_OBJECT_INDEX; 2711 int global_object_index = Context::GLOBAL_OBJECT_INDEX;
2713 FeedbackVectorSpec feedback_spec(&zone); 2712 FeedbackVectorSpec feedback_spec(&zone);
2714 FeedbackVectorSlot slot = feedback_spec.AddLoadICSlot(); 2713 FeedbackVectorSlot slot = feedback_spec.AddLoadICSlot();
2715 2714
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 }, 2770 },
2772 1, 2771 1,
2773 {InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE}}}; 2772 {InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE}}};
2774 2773
2775 for (size_t i = 0; i < arraysize(snippets); i++) { 2774 for (size_t i = 0; i < arraysize(snippets); i++) {
2776 Handle<BytecodeArray> bytecode_array = 2775 Handle<BytecodeArray> bytecode_array =
2777 helper.MakeBytecode(snippets[i].code_snippet, "f"); 2776 helper.MakeBytecode(snippets[i].code_snippet, "f");
2778 CheckBytecodeArrayEqual(snippets[i], bytecode_array); 2777 CheckBytecodeArrayEqual(snippets[i], bytecode_array);
2779 } 2778 }
2780 } 2779 }
2781 */
2782 2780
2783 2781
2784 TEST(FunctionLiterals) { 2782 TEST(FunctionLiterals) {
2785 InitializedHandleScope handle_scope; 2783 InitializedHandleScope handle_scope;
2786 BytecodeGeneratorHelper helper; 2784 BytecodeGeneratorHelper helper;
2787 Zone zone; 2785 Zone zone;
2788 2786
2789 FeedbackVectorSpec feedback_spec(&zone); 2787 FeedbackVectorSpec feedback_spec(&zone);
2790 FeedbackVectorSlot slot = feedback_spec.AddCallICSlot(); 2788 FeedbackVectorSlot slot = feedback_spec.AddCallICSlot();
2791 2789
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after
5467 for (size_t i = 0; i < arraysize(snippets); i++) { 5465 for (size_t i = 0; i < arraysize(snippets); i++) {
5468 Handle<BytecodeArray> bytecode_array = 5466 Handle<BytecodeArray> bytecode_array =
5469 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet); 5467 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet);
5470 CheckBytecodeArrayEqual(snippets[i], bytecode_array); 5468 CheckBytecodeArrayEqual(snippets[i], bytecode_array);
5471 } 5469 }
5472 } 5470 }
5473 5471
5474 } // namespace interpreter 5472 } // namespace interpreter
5475 } // namespace internal 5473 } // namespace internal
5476 } // namespace v8 5474 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-context-specialization.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698