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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 896643003: Class methods should be non enumerable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting 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
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 } else { 1801 } else {
1802 __ Drop(3); 1802 __ Drop(3);
1803 } 1803 }
1804 break; 1804 break;
1805 1805
1806 case ObjectLiteral::Property::PROTOTYPE: 1806 case ObjectLiteral::Property::PROTOTYPE:
1807 UNREACHABLE(); 1807 UNREACHABLE();
1808 break; 1808 break;
1809 1809
1810 case ObjectLiteral::Property::GETTER: 1810 case ObjectLiteral::Property::GETTER:
1811 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); 1811 __ li(a0, Operand(Smi::FromInt(NONE)));
1812 __ push(a0);
1813 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
1812 break; 1814 break;
1813 1815
1814 case ObjectLiteral::Property::SETTER: 1816 case ObjectLiteral::Property::SETTER:
1815 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); 1817 __ li(a0, Operand(Smi::FromInt(NONE)));
1818 __ push(a0);
1819 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
1816 break; 1820 break;
1817 } 1821 }
1818 } 1822 }
1819 } 1823 }
1820 1824
1821 if (expr->has_function()) { 1825 if (expr->has_function()) {
1822 DCHECK(result_saved); 1826 DCHECK(result_saved);
1823 __ ld(a0, MemOperand(sp)); 1827 __ ld(a0, MemOperand(sp));
1824 __ push(a0); 1828 __ push(a0);
1825 __ CallRuntime(Runtime::kToFastProperties, 1); 1829 __ CallRuntime(Runtime::kToFastProperties, 1);
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 switch (property->kind()) { 2531 switch (property->kind()) {
2528 case ObjectLiteral::Property::CONSTANT: 2532 case ObjectLiteral::Property::CONSTANT:
2529 case ObjectLiteral::Property::MATERIALIZED_LITERAL: 2533 case ObjectLiteral::Property::MATERIALIZED_LITERAL:
2530 case ObjectLiteral::Property::PROTOTYPE: 2534 case ObjectLiteral::Property::PROTOTYPE:
2531 UNREACHABLE(); 2535 UNREACHABLE();
2532 case ObjectLiteral::Property::COMPUTED: 2536 case ObjectLiteral::Property::COMPUTED:
2533 __ CallRuntime(Runtime::kDefineClassMethod, 3); 2537 __ CallRuntime(Runtime::kDefineClassMethod, 3);
2534 break; 2538 break;
2535 2539
2536 case ObjectLiteral::Property::GETTER: 2540 case ObjectLiteral::Property::GETTER:
2537 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); 2541 __ li(a0, Operand(Smi::FromInt(DONT_ENUM)));
2542 __ push(a0);
2543 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
2538 break; 2544 break;
2539 2545
2540 case ObjectLiteral::Property::SETTER: 2546 case ObjectLiteral::Property::SETTER:
2541 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); 2547 __ li(a0, Operand(Smi::FromInt(DONT_ENUM)));
2548 __ push(a0);
2549 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
2542 break; 2550 break;
2543 2551
2544 default: 2552 default:
2545 UNREACHABLE(); 2553 UNREACHABLE();
2546 } 2554 }
2547 } 2555 }
2548 2556
2549 // prototype 2557 // prototype
2550 __ CallRuntime(Runtime::kToFastProperties, 1); 2558 __ CallRuntime(Runtime::kToFastProperties, 1);
2551 2559
(...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after
5347 Assembler::target_address_at(pc_immediate_load_address)) == 5355 Assembler::target_address_at(pc_immediate_load_address)) ==
5348 reinterpret_cast<uint64_t>( 5356 reinterpret_cast<uint64_t>(
5349 isolate->builtins()->OsrAfterStackCheck()->entry())); 5357 isolate->builtins()->OsrAfterStackCheck()->entry()));
5350 return OSR_AFTER_STACK_CHECK; 5358 return OSR_AFTER_STACK_CHECK;
5351 } 5359 }
5352 5360
5353 5361
5354 } } // namespace v8::internal 5362 } } // namespace v8::internal
5355 5363
5356 #endif // V8_TARGET_ARCH_MIPS64 5364 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | src/runtime/runtime-object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698