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

Side by Side Diff: src/builtins.cc

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 static void Generate_KeyedLoadIC_IndexedInterceptor(MacroAssembler* masm) { 1330 static void Generate_KeyedLoadIC_IndexedInterceptor(MacroAssembler* masm) {
1331 KeyedLoadIC::GenerateIndexedInterceptor(masm); 1331 KeyedLoadIC::GenerateIndexedInterceptor(masm);
1332 } 1332 }
1333 1333
1334 1334
1335 static void Generate_StoreIC_Initialize(MacroAssembler* masm) { 1335 static void Generate_StoreIC_Initialize(MacroAssembler* masm) {
1336 StoreIC::GenerateInitialize(masm); 1336 StoreIC::GenerateInitialize(masm);
1337 } 1337 }
1338 1338
1339 1339
1340 static void Generate_StoreIC_Initialize_Strict(MacroAssembler* masm) {
1341 StoreIC::GenerateInitialize(masm);
1342 }
1343
1344
1340 static void Generate_StoreIC_Miss(MacroAssembler* masm) { 1345 static void Generate_StoreIC_Miss(MacroAssembler* masm) {
1341 StoreIC::GenerateMiss(masm); 1346 StoreIC::GenerateMiss(masm);
1342 } 1347 }
1343 1348
1344 1349
1345 static void Generate_StoreIC_Normal(MacroAssembler* masm) { 1350 static void Generate_StoreIC_Normal(MacroAssembler* masm) {
1346 StoreIC::GenerateNormal(masm); 1351 StoreIC::GenerateNormal(masm);
1347 } 1352 }
1348 1353
1349 1354
1355 static void Generate_StoreIC_Normal_Strict(MacroAssembler* masm) {
1356 StoreIC::GenerateNormal(masm);
1357 }
1358
1359
1350 static void Generate_StoreIC_Megamorphic(MacroAssembler* masm) { 1360 static void Generate_StoreIC_Megamorphic(MacroAssembler* masm) {
1351 StoreIC::GenerateMegamorphic(masm); 1361 StoreIC::GenerateMegamorphic(masm, kNonStrictMode);
1362 }
1363
1364
1365 static void Generate_StoreIC_Megamorphic_Strict(MacroAssembler* masm) {
1366 StoreIC::GenerateMegamorphic(masm, kStrictMode);
1352 } 1367 }
1353 1368
1354 1369
1355 static void Generate_StoreIC_ArrayLength(MacroAssembler* masm) { 1370 static void Generate_StoreIC_ArrayLength(MacroAssembler* masm) {
1356 StoreIC::GenerateArrayLength(masm); 1371 StoreIC::GenerateArrayLength(masm);
1357 } 1372 }
1358 1373
1359 1374
1375 static void Generate_StoreIC_ArrayLength_Strict(MacroAssembler* masm) {
1376 StoreIC::GenerateArrayLength(masm);
1377 }
1378
1379
1360 static void Generate_StoreIC_GlobalProxy(MacroAssembler* masm) { 1380 static void Generate_StoreIC_GlobalProxy(MacroAssembler* masm) {
1361 StoreIC::GenerateGlobalProxy(masm); 1381 StoreIC::GenerateGlobalProxy(masm, kNonStrictMode);
1382 }
1383
1384
1385 static void Generate_StoreIC_GlobalProxy_Strict(MacroAssembler* masm) {
1386 StoreIC::GenerateGlobalProxy(masm, kStrictMode);
1362 } 1387 }
1363 1388
1364 1389
1365 static void Generate_KeyedStoreIC_Generic(MacroAssembler* masm) { 1390 static void Generate_KeyedStoreIC_Generic(MacroAssembler* masm) {
1366 KeyedStoreIC::GenerateGeneric(masm); 1391 KeyedStoreIC::GenerateGeneric(masm, kNonStrictMode);
1392 }
1393
1394
1395 static void Generate_KeyedStoreIC_Generic_Strict(MacroAssembler* masm) {
1396 KeyedStoreIC::GenerateGeneric(masm, kStrictMode);
1367 } 1397 }
1368 1398
1369 1399
1370 static void Generate_KeyedStoreIC_Miss(MacroAssembler* masm) { 1400 static void Generate_KeyedStoreIC_Miss(MacroAssembler* masm) {
1371 KeyedStoreIC::GenerateMiss(masm); 1401 KeyedStoreIC::GenerateMiss(masm);
1372 } 1402 }
1373 1403
1374 1404
1375 static void Generate_KeyedStoreIC_Initialize(MacroAssembler* masm) { 1405 static void Generate_KeyedStoreIC_Initialize(MacroAssembler* masm) {
1376 KeyedStoreIC::GenerateInitialize(masm); 1406 KeyedStoreIC::GenerateInitialize(masm);
1377 } 1407 }
1378 1408
1379 1409
1410 static void Generate_KeyedStoreIC_Initialize_Strict(MacroAssembler* masm) {
1411 KeyedStoreIC::GenerateInitialize(masm);
1412 }
1413
1414
1380 #ifdef ENABLE_DEBUGGER_SUPPORT 1415 #ifdef ENABLE_DEBUGGER_SUPPORT
1381 static void Generate_LoadIC_DebugBreak(MacroAssembler* masm) { 1416 static void Generate_LoadIC_DebugBreak(MacroAssembler* masm) {
1382 Debug::GenerateLoadICDebugBreak(masm); 1417 Debug::GenerateLoadICDebugBreak(masm);
1383 } 1418 }
1384 1419
1385 1420
1386 static void Generate_StoreIC_DebugBreak(MacroAssembler* masm) { 1421 static void Generate_StoreIC_DebugBreak(MacroAssembler* masm) {
1387 Debug::GenerateStoreICDebugBreak(masm); 1422 Debug::GenerateStoreICDebugBreak(masm);
1388 } 1423 }
1389 1424
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 1534
1500 #define DEF_FUNCTION_PTR_C(aname, aextra_args) \ 1535 #define DEF_FUNCTION_PTR_C(aname, aextra_args) \
1501 functions->generator = FUNCTION_ADDR(Generate_Adaptor); \ 1536 functions->generator = FUNCTION_ADDR(Generate_Adaptor); \
1502 functions->c_code = FUNCTION_ADDR(Builtin_##aname); \ 1537 functions->c_code = FUNCTION_ADDR(Builtin_##aname); \
1503 functions->s_name = #aname; \ 1538 functions->s_name = #aname; \
1504 functions->name = c_##aname; \ 1539 functions->name = c_##aname; \
1505 functions->flags = Code::ComputeFlags(Code::BUILTIN); \ 1540 functions->flags = Code::ComputeFlags(Code::BUILTIN); \
1506 functions->extra_args = aextra_args; \ 1541 functions->extra_args = aextra_args; \
1507 ++functions; 1542 ++functions;
1508 1543
1509 #define DEF_FUNCTION_PTR_A(aname, kind, state) \ 1544 #define DEF_FUNCTION_PTR_A(aname, kind, state, extra) \
1510 functions->generator = FUNCTION_ADDR(Generate_##aname); \ 1545 functions->generator = FUNCTION_ADDR(Generate_##aname); \
1511 functions->c_code = NULL; \ 1546 functions->c_code = NULL; \
1512 functions->s_name = #aname; \ 1547 functions->s_name = #aname; \
1513 functions->name = aname; \ 1548 functions->name = aname; \
1514 functions->flags = Code::ComputeFlags(Code::kind, NOT_IN_LOOP, state); \ 1549 functions->flags = Code::ComputeFlags(Code::kind, \
1550 NOT_IN_LOOP, \
1551 state, \
1552 extra); \
1515 functions->extra_args = NO_EXTRA_ARGUMENTS; \ 1553 functions->extra_args = NO_EXTRA_ARGUMENTS; \
1516 ++functions; 1554 ++functions;
1517 1555
1518 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) 1556 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C)
1519 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) 1557 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A)
1520 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) 1558 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A)
1521 1559
1522 #undef DEF_FUNCTION_PTR_C 1560 #undef DEF_FUNCTION_PTR_C
1523 #undef DEF_FUNCTION_PTR_A 1561 #undef DEF_FUNCTION_PTR_A
1524 } 1562 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 if (entry->contains(pc)) { 1647 if (entry->contains(pc)) {
1610 return names_[i]; 1648 return names_[i];
1611 } 1649 }
1612 } 1650 }
1613 } 1651 }
1614 return NULL; 1652 return NULL;
1615 } 1653 }
1616 1654
1617 1655
1618 } } // namespace v8::internal 1656 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698